diff options
| author | Remi NGUYEN VAN <reminv@google.com> | 2021-06-29 17:16:28 +0900 |
|---|---|---|
| committer | Remi NGUYEN VAN <reminv@google.com> | 2021-06-30 12:00:28 +0900 |
| commit | 154cf1da20a77176ac42faed117a48afcf840bf4 (patch) | |
| tree | 813bf2c44e560ab548d1b718f8b80cb77f3f7bfd /tests/unit/java/com/android/server/IpSecServiceTest.java | |
| parent | 57c0380135b928377113b1fe12d41f6da370a56f (diff) | |
Re-skip connectivity unit tests before S
The tests are packaged together with other tests in a common coverage
suite, so need to be individually annotated so that they are skipped
before S.
They do not need to pass on platforms older than S, because such
platforms will not updated with the code that is tested.
This applies a previous change, this time using DevSdkIgnoreRunner,
as SdkSuppress does not work as expected in branches that have a
codename 2 versions above the SDK version, as is the case in AOSP.
Bug: 187935317
Test: atest ConnectivityCoverageTests on R
atest FrameworksNetTests on S
Change-Id: I5808d34459a4c19238baf8873afa7cf942828460
Diffstat (limited to 'tests/unit/java/com/android/server/IpSecServiceTest.java')
| -rw-r--r-- | tests/unit/java/com/android/server/IpSecServiceTest.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit/java/com/android/server/IpSecServiceTest.java b/tests/unit/java/com/android/server/IpSecServiceTest.java index 6232423b4f..fabd6f1fe9 100644 --- a/tests/unit/java/com/android/server/IpSecServiceTest.java +++ b/tests/unit/java/com/android/server/IpSecServiceTest.java @@ -43,6 +43,7 @@ import android.net.IpSecManager; import android.net.IpSecSpiResponse; import android.net.IpSecUdpEncapResponse; import android.os.Binder; +import android.os.Build; import android.os.ParcelFileDescriptor; import android.os.Process; import android.system.ErrnoException; @@ -51,7 +52,9 @@ import android.system.StructStat; import android.util.Range; import androidx.test.filters.SmallTest; -import androidx.test.runner.AndroidJUnit4; + +import com.android.testutils.DevSdkIgnoreRule; +import com.android.testutils.DevSdkIgnoreRunner; import dalvik.system.SocketTagger; @@ -70,7 +73,8 @@ import java.util.List; /** Unit tests for {@link IpSecService}. */ @SmallTest -@RunWith(AndroidJUnit4.class) +@RunWith(DevSdkIgnoreRunner.class) +@DevSdkIgnoreRule.IgnoreUpTo(Build.VERSION_CODES.R) public class IpSecServiceTest { private static final int DROID_SPI = 0xD1201D; |
