mirror of
https://gitee.com/openharmony/filemanagement_user_file_service
synced 2024-12-04 13:57:48 +00:00
commit
e0612e6854
@ -1862,7 +1862,7 @@ HWTEST_F(FileAccessHelperTest, medialibrary_file_access_Rename_0001, testing::ex
|
||||
result = g_fah->Rename(newDirUriTest, "testRename", renameUri);
|
||||
EXPECT_GE(result, OHOS::FileAccessFwk::ERR_OK);
|
||||
GTEST_LOG_(INFO) << "Rename_0001 result:" << result;
|
||||
result = g_fah->Delete(newDirUriTest);
|
||||
result = g_fah->Delete(renameUri);
|
||||
EXPECT_GE(result, OHOS::FileAccessFwk::ERR_OK);
|
||||
} catch (...) {
|
||||
GTEST_LOG_(ERROR) << "medialibrary_file_access_Rename_0001 occurs an exception.";
|
||||
|
@ -16,14 +16,14 @@
|
||||
<configuration ver="2.0">
|
||||
<target name="medialibrary_file_access_test">
|
||||
<preparer>
|
||||
<option name="shell" value="rm -rf /storage/media/100/local/files/*"/>
|
||||
<option name="shell" value="rm -rf /storage/media/100/local/files/Pictures/*"/>
|
||||
<option name="shell" value="rm -rf /storage/media/100/local/files/Videos/*"/>
|
||||
<option name="shell" value="rm -rf /storage/media/100/local/files/Audios/*"/>
|
||||
<option name="shell" value="rm -rf /storage/media/100/local/files/Documents/*"/>
|
||||
<option name="shell" value="rm -rf /storage/media/100/local/files/Download/*"/>
|
||||
<option name="shell" value="rm -rf /storage/media/100/local/files/.*"/>
|
||||
<option name="shell" value="scanner"/>
|
||||
<option name="shell" value="sleep 10"/>
|
||||
<option name="shell" value="mkdir /storage/media/100/local/files/Pictures"/>
|
||||
<option name="shell" value="mkdir /storage/media/100/local/files/Videos"/>
|
||||
<option name="shell" value="mkdir /storage/media/100/local/files/Audios"/>
|
||||
<option name="shell" value="mkdir /storage/media/100/local/files/Documents"/>
|
||||
<option name="shell" value="mkdir /storage/media/100/local/files/Documents/Test"/>
|
||||
<option name="push" value="thumbnail_testfile/CreateImageThumbnailTest_001.jpg -> /storage/media/100/local/files/Documents" src="res"/>
|
||||
<option name="push" value="thumbnail_testfile/CreateAudioThumbnailTest_001.mp3 -> /storage/media/100/local/files/Documents" src="res"/>
|
||||
|
Loading…
Reference in New Issue
Block a user