未验证 提交 be53dcaa 编写于 作者: O openharmony_ci 提交者: Gitee

!9728 add xts test for getPhotoIndex

Merge pull request !9728 from shenshensun/xts_getPhotoIndex
......@@ -145,6 +145,28 @@
"mediatool send /storage/media/100/local/temp/userCommentPro03.jpg",
"mediatool send /storage/media/100/local/temp/userCommentPro04.jpg",
"mediatool send /storage/media/100/local/temp/getExif.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex01.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex02.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex03.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex01.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex02.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex03.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex01.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex02.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex03.jpg",
"cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex01.mp4",
"cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex02.mp4",
"cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex03.mp4",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex01.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex02.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex03.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex01.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex02.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex03.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex01.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex02.jpg",
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex03.jpg",
"chmod -R 777 /storage/media/100/local/files/*",
"hilog -p off",
"hilog -Q pidoff",
......@@ -154,7 +176,23 @@
"sleep 5"
],
"teardown-command": [
"power-shell setmode 600"
"power-shell setmode 600",
"rm -rf /storage/media/100/local/files/Audios/*",
"rm -rf /storage/media/100/local/files/Audios/.*",
"rm -rf /storage/media/100/local/files/Camera/*",
"rm -rf /storage/media/100/local/files/Camera/.*",
"rm -rf /storage/media/100/local/files/Documents/*",
"rm -rf /storage/media/100/local/files/Documents/.*",
"rm -rf /storage/media/100/local/files/Download/*",
"rm -rf /storage/media/100/local/files/Download/.*",
"rm -rf /storage/media/100/local/files/Pictures/*",
"rm -rf /storage/media/100/local/files/Pictures/.*",
"rm -rf /storage/media/100/local/files/Videos/*",
"rm -rf /storage/media/100/local/files/Videos/.*",
"sleep 5",
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
"kill -9 `pidof com.ohos.medialibrary.medialibrarydata`",
"scanner"
]
},
{
......
......@@ -27,6 +27,7 @@ import setFavoriteTest from './setFavorite'
import setHiddenTest from './setHidden'
import trashAssetsTest from './deleteAssets'
import setUserCommentTest from './setUserComment'
import getPhotoIndexTest from './getPhotoIndex'
export default function testsuite () {
deleteAssetsTest()
......@@ -43,4 +44,5 @@ export default function testsuite () {
setHiddenTest()
trashAssetsTest()
setUserCommentTest()
getPhotoIndexTest()
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册