Move test_mainline_modules to AndroidTest.xml
When an AndroidTest.xml is used, configuration needs to be in the AndroidTest.xml file, not in the Android.bp. This currently causes tests not to be run in TEST_MAPPING as they should be. Test: TH needs to test Bug: 187935317 Original-Change: https://android-review.googlesource.com/1748157 Merged-In: Ie0aca0c64646825175769cd375bcecf65de4b4c8 Change-Id: Ie0aca0c64646825175769cd375bcecf65de4b4c8
This commit is contained in:
committed by
Remi NGUYEN VAN
parent
1c45a8a623
commit
fb34c5861a
@@ -50,9 +50,6 @@ android_test {
|
||||
// TODO: change to 31 as soon as it is available
|
||||
target_sdk_version: "30",
|
||||
test_suites: ["device-tests", "mts"],
|
||||
test_mainline_modules: [
|
||||
"CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex",
|
||||
],
|
||||
defaults: [
|
||||
"framework-connectivity-test-defaults",
|
||||
"FrameworksNetTests-jni-defaults",
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
</target_preparer>
|
||||
|
||||
<option name="test-tag" value="ConnectivityCoverageTests" />
|
||||
<option name="config-descriptor:metadata" key="mainline-param" value="CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex" />
|
||||
<test class="com.android.tradefed.testtype.AndroidJUnitTest" >
|
||||
<option name="package" value="com.android.connectivity.tests.coverage" />
|
||||
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
|
||||
|
||||
Reference in New Issue
Block a user