From 1f672e83a03bac82d9e2a79ee9abe4c1c2832f2b Mon Sep 17 00:00:00 2001 From: Sudheer Shanka Date: Thu, 29 Jun 2017 14:06:20 -0700 Subject: [PATCH] Set parole_duration=0 for CtsHostsideNetworkTests. Some of the tests in CtsHostsideNetworkTests module will put the test app in App standby mode and check the network availability. If the device enters into parole state during the test, then the test fails. Set the parole_duration to 0 so that it won't parole state won't affect these tests. Bug: 63140218 Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \ com.android.cts.net.HostsideRestrictBackgroundNetworkTests Change-Id: I8158eba74f03e82566de1de9f94b981b17175df5 --- tests/cts/hostside/AndroidTest.xml | 1 + .../cts/net/NetPolicyTestsPreparer.java | 75 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 tests/cts/hostside/src/com/android/cts/net/NetPolicyTestsPreparer.java diff --git a/tests/cts/hostside/AndroidTest.xml b/tests/cts/hostside/AndroidTest.xml index ad7f81ba38..4a2e2e38b0 100644 --- a/tests/cts/hostside/AndroidTest.xml +++ b/tests/cts/hostside/AndroidTest.xml @@ -15,6 +15,7 @@ -->