Update connectivity TEST_MAPPING

- Move Tethering TEST_MAPPING up one level to merge with the general
   Connectivity TEST_MAPPING. This allows running the tethering tests
   on any connectivity change.
 - Move TetheringIntegrationTests from postsubmit to presubmit
 - Add TetheringCoverageTests to mainline-postsubmit, so it can be
   added to mainline-presubmit later.
 - Import NetworkStack tests so that they are run on any connectivity
   change.

TetheringIntegrationTests were continuously green in postsubmit.

Bug: 187946226
Original-Change: https://android-review.googlesource.com/1713468
Merged-In: Ibf05ad64b02c563930ba0f01eb91331b295fe505
Change-Id: Ibf05ad64b02c563930ba0f01eb91331b295fe505
Test: Treehugger needed to test TEST_MAPPING files
This commit is contained in:
Treehugger Robot
2021-05-20 09:16:46 +00:00
committed by Remi NGUYEN VAN
parent bf9cb4dd18
commit 0e2dbf3106
2 changed files with 15 additions and 13 deletions

View File

@@ -11,6 +11,12 @@
"exclude-annotation": "com.android.testutils.SkipPresubmit" "exclude-annotation": "com.android.testutils.SkipPresubmit"
} }
] ]
},
{
"name": "TetheringTests"
},
{
"name": "TetheringIntegrationTests"
} }
], ],
"mainline-presubmit": [ "mainline-presubmit": [
@@ -24,11 +30,19 @@
] ]
} }
], ],
// Tests on physical devices with SIM cards: postsubmit only for capacity constraints
"mainline-postsubmit": [ "mainline-postsubmit": [
// Tests on physical devices with SIM cards: postsubmit only for capacity constraints
{ {
"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
"keywords": ["sim"] "keywords": ["sim"]
},
{
"name": "TetheringCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
}
],
"imports": [
{
"path": "packages/modules/NetworkStack"
} }
], ],
"imports": [ "imports": [

View File

@@ -1,12 +0,0 @@
{
"presubmit": [
{
"name": "TetheringTests"
}
],
"postsubmit": [
{
"name": "TetheringIntegrationTests"
}
]
}