summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubhangi Pawar <svpawar@google.com>2022-12-08 23:58:03 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-12-08 23:58:03 +0000
commit1be7d5e77cfe6d2be310bc18596832345afb8b3a (patch)
tree99a6ceeae32c6af38126e3eac5fe7749ef35bfce
parentaa1826207a59942c73a0499bb8fc05aa44b2d9d6 (diff)
parent7af74d709541b93710e3dc5b5253c02d1cd39751 (diff)
downloadConnectivity-1be7d5e77cfe6d2be310bc18596832345afb8b3a.tar.gz
Merge "DO NOT MERGE: don't test BPF tethering offload in CTS" into android13-tests-dev
-rw-r--r--Tethering/tests/integration/src/android/net/EthernetTetheringTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java b/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java
index 5869f2b7db..e83d4cb1fd 100644
--- a/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java
+++ b/Tethering/tests/integration/src/android/net/EthernetTetheringTest.java
@@ -85,7 +85,6 @@ import com.android.net.module.util.structs.Ipv4Header;
import com.android.net.module.util.structs.Ipv6Header;
import com.android.net.module.util.structs.UdpHeader;
import com.android.testutils.DevSdkIgnoreRule;
-import com.android.testutils.DevSdkIgnoreRule.IgnoreAfter;
import com.android.testutils.DevSdkIgnoreRule.IgnoreUpTo;
import com.android.testutils.DeviceInfoUtils;
import com.android.testutils.DumpTestUtils;
@@ -95,6 +94,7 @@ import com.android.testutils.TestNetworkTracker;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1062,8 +1062,7 @@ public class EthernetTetheringTest {
}
@Test
- @IgnoreAfter(Build.VERSION_CODES.R)
- public void testTetherUdpV4UpToR() throws Exception {
+ public void testTetherUdpV4() throws Exception {
initializeTethering();
runUdp4Test(new TetheringTester(mDownstreamReader), new RemoteResponder(mUpstreamReader),
false /* usingBpf */);
@@ -1095,10 +1094,12 @@ public class EthernetTetheringTest {
assertTrue(isUdpOffloadSupportedByKernel("5.10.0"));
}
+ // b/258637850 - this test will break with newer mainline modules on T due to support CLAT
+ // tethering offload which changes BPF map format, so it has to be suppressed in CTS for T.
+ @Ignore
// TODO: refactor test testTetherUdpV4* into IPv4 UDP non-offload and offload tests.
// That can be easier to know which feature is verified from test results.
@Test
- @IgnoreUpTo(Build.VERSION_CODES.R)
public void testTetherUdpV4AfterR() throws Exception {
initializeTethering();
final String kernelVersion = VintfRuntimeInfo.getKernelVersion();