Skip presubmit for flaky tests in HostsideVpnTests due to Out of SLO

Test: TH
Bug: 291701394
Change-Id: Iea67a9402f2712746c8e7424aacf66f82099700c
This commit is contained in:
Junyu Lai
2023-07-26 13:58:06 +08:00
parent 5be6224203
commit 7eb00f79c3
3 changed files with 20 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ java_test_host {
// Only compile source java files in this apk.
srcs: ["src/**/*.java"],
libs: [
"net-tests-utils-host-device-common",
"cts-tradefed",
"tradefed",
],

View File

@@ -11,6 +11,20 @@
},
{
"exclude-annotation": "android.platform.test.annotations.RequiresDevice"
},
{
"exclude-annotation": "com.android.testutils.SkipPresubmit"
}
]
}
],
"postsubmit": [
{
// Postsubmit on virtual devices to monitor flakiness of @SkipPresubmit methods
"name": "CtsHostsideNetworkTests",
"options": [
{
"exclude-annotation": "androidx.test.filters.RequiresDevice"
}
]
}

View File

@@ -18,6 +18,8 @@ package com.android.cts.net;
import android.platform.test.annotations.RequiresDevice;
import com.android.testutils.SkipPresubmit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -35,11 +37,13 @@ public class HostsideVpnTests extends HostsideNetworkTestCase {
uninstallPackage(TEST_APP2_PKG, true);
}
@SkipPresubmit(reason = "Out of SLO flakiness")
@Test
public void testChangeUnderlyingNetworks() throws Exception {
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testChangeUnderlyingNetworks");
}
@SkipPresubmit(reason = "Out of SLO flakiness")
@Test
public void testDefault() throws Exception {
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testDefault");
@@ -162,6 +166,7 @@ public class HostsideVpnTests extends HostsideNetworkTestCase {
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testBlockIncomingPackets");
}
@SkipPresubmit(reason = "Out of SLO flakiness")
@Test
public void testSetVpnDefaultForUids() throws Exception {
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testSetVpnDefaultForUids");