Skip presubmit for flaky tests in HostsideVpnTests due to Out of SLO
Test: TH Bug: 291701394 Change-Id: Iea67a9402f2712746c8e7424aacf66f82099700c
This commit is contained in:
@@ -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",
|
||||
],
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user