summaryrefslogtreecommitdiff
path: root/tests/ManagedProfileLifecycleStressTest
diff options
context:
space:
mode:
author Pavel Grafov <pgrafov@google.com> 2019-12-16 19:07:21 +0000
committer Pavel Grafov <pgrafov@google.com> 2019-12-16 19:07:21 +0000
commit34a894dc5dffb77df1c32374f79ff60b1dccf68a (patch)
tree89731a9a96312f145ca593ee0f0fce50e8e6c1be /tests/ManagedProfileLifecycleStressTest
parent24e2025e17a71d96b050520869461a2fd7c9e3a0 (diff)
Disable package verifier in stress test.
This makes this closer to CTS test conditions and also prevents package install timeouts if something is wrong with the verifier. Bug: 141115315 Test: atest ManagedProfileLifecycleStressTest Change-Id: I8ff11d8f8bb5752bb93f06696df84849faaf23b9
Diffstat (limited to 'tests/ManagedProfileLifecycleStressTest')
-rw-r--r--tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ManagedProfileLifecycleStressTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ManagedProfileLifecycleStressTest.java b/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ManagedProfileLifecycleStressTest.java
index e323592d40ca..026677e09bed 100644
--- a/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ManagedProfileLifecycleStressTest.java
+++ b/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ManagedProfileLifecycleStressTest.java
@@ -53,6 +53,8 @@ public class ManagedProfileLifecycleStressTest extends BaseHostJUnit4Test {
*/
@Test
public void testCreateStartDelete() throws Exception {
+ // Disable package verifier for ADB installs.
+ getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0");
int iteration = 0;
final long deadline = System.nanoTime() + TimeUnit.MINUTES.toNanos(TIME_LIMIT_MINUTES);
while (System.nanoTime() < deadline) {