From 2f9adea0cfa9cc593e0e0ebc1c2d9f3e58ca689f Mon Sep 17 00:00:00 2001 From: fulizhong Date: Fri, 26 Aug 2022 18:00:33 +0800 Subject: [PATCH] modify testcases Signed-off-by: FULIZHONG Signed-off-by: fulizhong --- multimedia/media/media_js_standard/audioPlayer/Test.json | 7 +++++-- multimedia/media/media_js_standard/audioRecorder/Test.json | 4 +++- .../media/media_js_standard/recorderFormat/Test.json | 7 +++++-- multimedia/media/media_js_standard/videoPlayer/Test.json | 7 +++++-- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/multimedia/media/media_js_standard/audioPlayer/Test.json b/multimedia/media/media_js_standard/audioPlayer/Test.json index 392125a35..bf19fbf78 100644 --- a/multimedia/media/media_js_standard/audioPlayer/Test.json +++ b/multimedia/media/media_js_standard/audioPlayer/Test.json @@ -19,9 +19,12 @@ { "type": "ShellKit", "run-command": [ - "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files" + "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files", + "power-shell setmode 602" ], - "teardown-command": [] + "teardown-command": [ + "power-shell setmode 600" + ] }, { "type": "PushKit", diff --git a/multimedia/media/media_js_standard/audioRecorder/Test.json b/multimedia/media/media_js_standard/audioRecorder/Test.json index 39dee9724..80ac1b4ab 100644 --- a/multimedia/media/media_js_standard/audioRecorder/Test.json +++ b/multimedia/media/media_js_standard/audioRecorder/Test.json @@ -11,9 +11,11 @@ "type": "ShellKit", "run-command": [ "rm -rf /storage/media/100/local/files/Videos/audio_*", - "rm -rf /storage/media/100/local/files/Audios/audio_*" + "rm -rf /storage/media/100/local/files/Audios/audio_*", + "power-shell setmode 602" ], "teardown-command":[ + "power-shell setmode 600" ] }, { diff --git a/multimedia/media/media_js_standard/recorderFormat/Test.json b/multimedia/media/media_js_standard/recorderFormat/Test.json index 37090d007..84d1d52a0 100644 --- a/multimedia/media/media_js_standard/recorderFormat/Test.json +++ b/multimedia/media/media_js_standard/recorderFormat/Test.json @@ -12,9 +12,12 @@ { "type": "ShellKit", "run-command": [ - "rm -rf /storage/media/100/local/files/Videos/COMPATIBILITY*" + "rm -rf /storage/media/100/local/files/Videos/COMPATIBILITY*", + "power-shell setmode 602" ], - "teardown-command": [] + "teardown-command": [ + "power-shell setmode 600" + ] }, { "test-file-name": [ diff --git a/multimedia/media/media_js_standard/videoPlayer/Test.json b/multimedia/media/media_js_standard/videoPlayer/Test.json index a8de66404..c02f96837 100644 --- a/multimedia/media/media_js_standard/videoPlayer/Test.json +++ b/multimedia/media/media_js_standard/videoPlayer/Test.json @@ -19,9 +19,12 @@ { "type": "ShellKit", "run-command": [ - "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files" + "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.video.videoplayer/haps/entry/files", + "power-shell setmode 602" ], - "teardown-command": [] + "teardown-command": [ + "power-shell setmode 600" + ] }, { "type": "PushKit", -- GitLab