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
This commit is contained in:
Pavel Grafov
2019-12-16 19:07:21 +00:00
parent 24e2025e17
commit 34a894dc5d

View File

@@ -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) {