Skip to content

Commit

Permalink
78: save video in /data/local/tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
greenEkatherine committed Feb 21, 2021
1 parent c09a8a9 commit de6bfd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
variables:
DEVICE_VIDEO_DIR: /data/local/tmp/

parameters:
- name: AndroidAPIs
type: object
Expand Down Expand Up @@ -66,7 +69,7 @@ jobs:
$ANDROID_HOME/platform-tools/adb shell '''
for i in $(seq 1 1 20)
do
screenrecord --bugreport --verbose --time-limit=180 $(Build.ArtifactStagingDirectory)/test"${i}".mp4
screenrecord --bugreport --verbose --time-limit=180 $(DEVICE_VIDEO_DIR)/test"${i}".mp4
done
''' > $(Build.ArtifactStagingDirectory)/video-${{ value }}.log &
echo $! > video.pid
Expand All @@ -89,7 +92,7 @@ jobs:
- bash: |
kill -9 $(cat video.pid) || true
sleep 5
$ANDROID_HOME/platform-tools/adb pull $(Build.ArtifactStagingDirectory) $(Build.ArtifactStagingDirectory)/API_${{ value }} || true
$ANDROID_HOME/platform-tools/adb pull $(DEVICE_VIDEO_DIR) $(Build.ArtifactStagingDirectory)/API_${{ value }} || true
kill -9 $(cat logcat.pid) || true
adb kill-server
condition: or(succeeded(), failed())
Expand Down

0 comments on commit de6bfd9

Please sign in to comment.