!489 Tdd用例适配

Merge pull request !489 from 冯俊青/master
This commit is contained in:
openharmony_ci 2023-07-24 04:12:41 +00:00 committed by Gitee
commit e0612e6854
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 6 additions and 6 deletions

View File

@ -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.";

View File

@ -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"/>