From 8471a9d3782a6fc836d8cad650318031ec0226ef Mon Sep 17 00:00:00 2001 From: Victor Hsieh Date: Fri, 20 Dec 2019 09:50:46 -0800 Subject: ApkVerityTest: print debug log in retry loop This adds more visibility to when the cache was not evicted for some reasons. Test: run atest, saw the log Bug: 146350859 Change-Id: I926c9702ff5540ff8291f447d14559fcf5f8395e --- tests/ApkVerityTest/src/com/android/apkverity/ApkVerityTest.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/ApkVerityTest') diff --git a/tests/ApkVerityTest/src/com/android/apkverity/ApkVerityTest.java b/tests/ApkVerityTest/src/com/android/apkverity/ApkVerityTest.java index 2445a6a52c08..20d0e9690e8e 100644 --- a/tests/ApkVerityTest/src/com/android/apkverity/ApkVerityTest.java +++ b/tests/ApkVerityTest/src/com/android/apkverity/ApkVerityTest.java @@ -27,6 +27,7 @@ import android.platform.test.annotations.RootPermissionTest; import com.android.tradefed.device.DeviceNotAvailableException; import com.android.tradefed.device.ITestDevice; +import com.android.tradefed.log.LogUtil.CLog; import com.android.tradefed.testtype.DeviceJUnit4ClassRunner; import com.android.tradefed.testtype.junit4.BaseHostJUnit4Test; import com.android.tradefed.util.CommandResult; @@ -412,6 +413,7 @@ public class ApkVerityTest extends BaseHostJUnit4Test { break; } try { + CLog.d("lsof: " + expectRemoteCommandToSucceed("lsof " + apkPath)); Thread.sleep(1000); String pid = expectRemoteCommandToSucceed("pidof system_server"); mDevice.executeShellV2Command("kill -10 " + pid); // force GC -- cgit v1.2.3-59-g8ed1b