Fix flaky tests by require root for minadbd_tests
minadbd tests require access to /dev/fuse, therefore needs to run as root. This test has been flaky because root preparetor wasn't specified. Bug: 165604640 Test: atest MinadbdServicesTest Change-Id: I6ee1e2deede4352e28aad79c436ec5974e7d64f6
This commit is contained in:
parent
99277fa6af
commit
d7ae5a020c
2 changed files with 3 additions and 1 deletions
|
@ -135,4 +135,5 @@ cc_test {
|
||||||
test_suites: [
|
test_suites: [
|
||||||
"device-tests",
|
"device-tests",
|
||||||
],
|
],
|
||||||
|
require_root: true,
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,9 +18,10 @@
|
||||||
<option name="cleanup" value="true" />
|
<option name="cleanup" value="true" />
|
||||||
<option name="push" value="minadbd_test->/data/local/tmp/minadbd_test" />
|
<option name="push" value="minadbd_test->/data/local/tmp/minadbd_test" />
|
||||||
</target_preparer>
|
</target_preparer>
|
||||||
|
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
|
||||||
<option name="test-suite-tag" value="apct" />
|
<option name="test-suite-tag" value="apct" />
|
||||||
<test class="com.android.tradefed.testtype.GTest" >
|
<test class="com.android.tradefed.testtype.GTest" >
|
||||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||||
<option name="module-name" value="minadbd_test" />
|
<option name="module-name" value="minadbd_test" />
|
||||||
</test>
|
</test>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
Loading…
Reference in a new issue