Skip PersistentIntTest on S- device
This class is only used in the service runs on T+ devices.
Thus run this test on S- device does not make senses.
Bug: 230289468
Test: atest ConnectivityCoverageTests:PersistentIntTest
on S device
Change-Id: I97a29df17ef9ee9ab373655f045cdb5c820e06ef
Merged-In: I97a29df17ef9ee9ab373655f045cdb5c820e06ef
(pure cherry-picked from ag/18486287)
This commit is contained in:
parent
ec2fbb7159
commit
1190ea3eb7
1 changed files with 7 additions and 1 deletions
|
|
@ -17,10 +17,14 @@
|
|||
package com.android.server.net
|
||||
|
||||
import android.util.SystemConfigFileCommitEventLogger
|
||||
import com.android.testutils.DevSdkIgnoreRule.IgnoreUpTo
|
||||
import com.android.testutils.DevSdkIgnoreRunner
|
||||
import com.android.testutils.SC_V2
|
||||
import com.android.testutils.assertThrows
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import java.io.File
|
||||
import java.io.IOException
|
||||
import java.nio.file.Files
|
||||
|
|
@ -32,6 +36,8 @@ import java.nio.file.attribute.PosixFilePermission.OWNER_WRITE
|
|||
import java.util.Random
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
@RunWith(DevSdkIgnoreRunner::class)
|
||||
@IgnoreUpTo(SC_V2)
|
||||
class PersistentIntTest {
|
||||
val tempFilesCreated = mutableSetOf<Path>()
|
||||
lateinit var tempDir: Path
|
||||
|
|
@ -124,4 +130,4 @@ class PersistentIntTest {
|
|||
tempFilesCreated.add(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue