Add log to capture the output from carwatchdog
Bug: 155438857
Test: atest android.car.cts.CarWatchdogDaemonTest
Change-Id: Ie77c9769485d7730a96bd0b04d7e078f75e51b1e
diff --git a/tests/tests/car/src/android/car/cts/CarWatchdogDaemonTest.java b/tests/tests/car/src/android/car/cts/CarWatchdogDaemonTest.java
index 17cf909..29ca7c7 100644
--- a/tests/tests/car/src/android/car/cts/CarWatchdogDaemonTest.java
+++ b/tests/tests/car/src/android/car/cts/CarWatchdogDaemonTest.java
@@ -92,6 +92,7 @@
// Sleep twice the collection interval to capture the entire write.
Thread.sleep(CAPTURE_WAIT_MS);
String contents = runShellCommand("dumpsys " + CAR_WATCHDOG_SERVICE_NAME + " --stop_io");
+ Log.i(TAG, "stop results:" + contents);
assertWithMessage("Failed to custom collect I/O performance data").that(
contents).isNotEmpty();
PackageManager packageManager = getContext().getPackageManager();
@@ -109,6 +110,7 @@
while (maxSize != 0) {
int writeSize = (int) Math.min(Integer.MAX_VALUE,
Math.min(Runtime.getRuntime().freeMemory(), maxSize));
+ Log.i(TAG, "writeSize:" + writeSize);
try {
fos.write(new byte[writeSize]);
} catch (InterruptedIOException e) {