aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuexi Ma <yuexima@google.com>2023-03-10 13:16:58 -0800
committerYuexi Ma <yuexima@google.com>2023-03-23 17:13:21 +0000
commitb04ac05d44201dfff810ae6cf958ad15fdbe0424 (patch)
treee6b7932fd7d48adeea47b3694d625571586c84da
parent1cf79c29a2838f6aaae7aa081436884464bfab53 (diff)
downloadcsuite-b04ac05d44201dfff810ae6cf958ad15fdbe0424.tar.gz
Log down video size after screenrecord complete
Test: unit test Change-Id: Ic230be4002df6352c5ce7fbd660680b3f4679cc8
-rw-r--r--harness/src/main/java/com/android/csuite/core/DeviceUtils.java5
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);