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

Commit 35202245 authored by Bernie Innocenti's avatar Bernie Innocenti
Browse files

Make resolv_stress_test run as root

This test is special-cased because it uses an explicit AndroidTest.xml
config, so Soong's 'require_root' option won't work with it.

Bug: 134891412
Test: atest resolv_stress_test
Change-Id: Ia4e38d8b1ffd445cfebef158a2722d8aaf62b6af
parent 02e528be
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
cc_test {
    name: "resolv_stress_test",
    test_suites: ["device-tests"],
    // This won't work with test_config
    // require_root: true,
    test_config: "resolv_stress_test_config.xml",
    defaults: ["netd_defaults"],
    srcs: [
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
        <option name="cleanup" value="true" />
        <option name="push" value="resolv_stress_test->/data/local/tmp/resolv_stress_test" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>

    <test class="com.android.tradefed.testtype.GTest" >
        <option name="native-test-device-path" value="/data/local/tmp" />