From d954bfcd322040eae278e3e8d527f5b76394ad51 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Thu, 20 May 2021 01:25:47 +0000 Subject: [PATCH] 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 Change-Id: Ibf05ad64b02c563930ba0f01eb91331b295fe505 Test: Treehugger needed to test TEST_MAPPING files --- TEST_MAPPING | 16 +++++++++++++++- Tethering/TEST_MAPPING | 12 ------------ 2 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 Tethering/TEST_MAPPING diff --git a/TEST_MAPPING b/TEST_MAPPING index ef96d88c2b..9a455ba270 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -11,6 +11,12 @@ "exclude-annotation": "com.android.testutils.SkipPresubmit" } ] + }, + { + "name": "TetheringTests" + }, + { + "name": "TetheringIntegrationTests" } ], "mainline-presubmit": [ @@ -23,11 +29,19 @@ ] } ], - // Tests on physical devices with SIM cards: postsubmit only for capacity constraints "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]", "keywords": ["sim"] + }, + { + "name": "TetheringCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" + } + ], + "imports": [ + { + "path": "packages/modules/NetworkStack" } ] } diff --git a/Tethering/TEST_MAPPING b/Tethering/TEST_MAPPING deleted file mode 100644 index 5617b0c13c..0000000000 --- a/Tethering/TEST_MAPPING +++ /dev/null @@ -1,12 +0,0 @@ -{ - "presubmit": [ - { - "name": "TetheringTests" - } - ], - "postsubmit": [ - { - "name": "TetheringIntegrationTests" - } - ] -}