summaryrefslogtreecommitdiff
path: root/wifi/tests
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2020-03-05 13:12:39 -0800
committerDavid Su <dysu@google.com>2020-03-05 13:12:39 -0800
commit6df01e928d0ed87f0aef771c2557e8e9c0315cbb (patch)
treec70aaa6b44db3ae5fbe35e7a825628a20a8541b4 /wifi/tests
parentc6301c0885e66b6fb3939fc13eacbac7b247160b (diff)
MTS: only run FrameworksWifiApiTest if Wifi module is installed
Bug: 150650681 Test: m mts && mts-tradefed run mts-wifi Change-Id: I3a3baeccfb6b9a385e01553b7eb483aedb55b958
Diffstat (limited to 'wifi/tests')
-rw-r--r--wifi/tests/AndroidTest.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/wifi/tests/AndroidTest.xml b/wifi/tests/AndroidTest.xml
index 987fee79fefd..34e2e3af9cda 100644
--- a/wifi/tests/AndroidTest.xml
+++ b/wifi/tests/AndroidTest.xml
@@ -25,4 +25,10 @@
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
<option name="hidden-api-checks" value="false"/>
</test>
+
+ <!-- Only run FrameworksWifiApiTests in MTS if the Wifi Mainline module is installed. -->
+ <object type="module_controller"
+ class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
+ <option name="mainline-module-package-name" value="com.google.android.wifi" />
+ </object>
</configuration>