Skip testRouterSolicitations on T- devices.

This does not lways pass on some devices before U. Now that the
test is being added to MCTS, and needs to be backwards
compatible, skip this test on T- devices.

Test: atest CtsHostsideNetworkTests
Change-Id: I2368f118d2539d70a97c937485f5179c47ba28d7
This commit is contained in:
Lorenzo Colitti 2024-09-20 15:04:11 +09:00
commit eca630007a

View file

@ -166,6 +166,8 @@ public class ProcNetTest extends BaseHostJUnit4Test implements IBuildReceiver, I
*/
@Test
public void testRouterSolicitations() throws Exception {
assumeTrue(new DeviceSdkLevel(mDevice).isDeviceAtLeastU());
for (String interfaceDir : mSysctlDirs) {
String path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitations";
int value = readIntFromPath(path);
@ -186,8 +188,7 @@ public class ProcNetTest extends BaseHostJUnit4Test implements IBuildReceiver, I
*/
@Test
public void testCongestionControl() throws Exception {
final DeviceSdkLevel dsl = new DeviceSdkLevel(mDevice);
assumeTrue(dsl.isDeviceAtLeastV());
assumeTrue(new DeviceSdkLevel(mDevice).isDeviceAtLeastV());
String path = "/proc/sys/net/ipv4/tcp_congestion_control";
String value = mDevice.executeAdbCommand("shell", "cat", path).trim();