diff --git a/TEST_MAPPING b/TEST_MAPPING index c1d6a89356..0326bf25af 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -226,7 +226,12 @@ ] }, { - "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" + "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", + "options": [ + { + "exclude-annotation": "com.android.testutils.NetworkStackModuleTest" + } + ] } ], "mainline-postsubmit": [ @@ -236,8 +241,13 @@ "keywords": ["sim"] }, { - "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", - "keywords": ["sim"] + "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", + "keywords": ["sim"], + "options": [ + { + "exclude-annotation": "com.android.testutils.NetworkStackModuleTest" + } + ] } ], "imports": [ diff --git a/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java b/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java index 4ee5c429c9..5d57aa5062 100644 --- a/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java +++ b/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java @@ -65,6 +65,7 @@ import com.android.net.module.util.structs.Ipv4Header; import com.android.net.module.util.structs.UdpHeader; import com.android.testutils.DevSdkIgnoreRule; import com.android.testutils.DevSdkIgnoreRule.IgnoreUpTo; +import com.android.testutils.NetworkStackModuleTest; import com.android.testutils.TapPacketReader; import org.junit.Rule; @@ -860,6 +861,8 @@ public class EthernetTetheringTest extends EthernetTetheringTestBase { (byte) 0x00, (byte) 0x08, (byte) 0x3a, (byte) 0xdf }; + // This test requires the update in NetworkStackModule(See b/269692093). + @NetworkStackModuleTest @Test public void testTetherZeroLengthDhcpPacket() throws Exception { final TetheringTester tester = initTetheringTester(toList(TEST_IP4_ADDR),