Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef75672d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "ApkVerityTest: print debug log in retry loop"

parents 33872252 8471a9d3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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