diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-25 03:32:04 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-25 03:32:04 +0000 |
commit | 58a9a0f47e43f123b445e19032e416ed4c11cc48 (patch) | |
tree | 7e4cddf43128db6ca978ede1975e63023046d40d | |
parent | a0b4cd2dc2b7c752f71d43ae878bf124f35d7d1f (diff) | |
parent | ad894656c73eb12c071ffce40579860c64d9176d (diff) | |
download | csuite-58a9a0f47e43f123b445e19032e416ed4c11cc48.tar.gz |
Snap for 9818505 from ad894656c73eb12c071ffce40579860c64d9176d to udc-d1-release
Change-Id: Ia00ba2bc76b1bac271a1b39bb7bc2d5e3ad9d222
-rw-r--r-- | harness/src/main/java/com/android/csuite/core/DeviceUtils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/harness/src/main/java/com/android/csuite/core/DeviceUtils.java b/harness/src/main/java/com/android/csuite/core/DeviceUtils.java index c075408..3528fe8 100644 --- a/harness/src/main/java/com/android/csuite/core/DeviceUtils.java +++ b/harness/src/main/java/com/android/csuite/core/DeviceUtils.java @@ -219,6 +219,11 @@ public class DeviceUtils { recordingProcess.destroyForcibly(); } } + + CommandResult result = mDevice.executeShellV2Command("ls -sh " + videoPath); + if (result != null && result.getStatus() == CommandStatus.SUCCESS) { + CLog.d("Completed screenrecord %s, video size: %s", videoPath, result.getStdout()); + } // Try to pull, handle, and delete the video file from the device anyway. handler.handleScreenRecordFile(mDevice.pullFile(videoPath)); mDevice.deleteFile(videoPath); |