summaryrefslogtreecommitdiff
path: root/common/netd/libnetdutils/ThreadUtilTest.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2022-05-27 23:50:25 +0900
committerCherrypicker Worker <android-build-cherrypicker-worker@google.com>2022-06-01 06:04:51 +0000
commit29c9c3337990ff7d346f0662a4d56a6bef0034d1 (patch)
treef209f3ed8eb04a55903105a6a0e774039b362c06 /common/netd/libnetdutils/ThreadUtilTest.cpp
parent23a3717884154e7f394f50ce4c23912067daaef9 (diff)
Add an annotation to skip tests if the APK has target SDK > 31.
This skips a test if the APK it's running in targets an SDK above 31. This allows us to add such tests to CtsNetTestCases, which is currently targeting SDK 33. By using the annotation as an include-annotation filter in AndroidTestTemplate.xml, this makes it very easy to create a clone of CtsNetTestCases that targets SDK 31 and which only runs tests annotated with this annotation. Thus, CtsNetTestCases and CtsNetTestCasesLatestSdk will run all tests that pass if target SDK is 33, and CtsNetTestCasesMaxTargetSdk31 will only run the tests that requires target SDK 31. See other CL in topic. Bug: 233553525 Test: atest CtsNetTestCasesMaxTargetSdk31:android.net.LinkPropertiesTest Test: atest CtsNetTestCasesLatestSdk:android.net.LinkPropertiesTest Change-Id: Ib5df3bbc659d6a737a846fdf57cddee002e4e9ae (cherry picked from commit 8459c69a22cf4aae0c3cce59efc05f66d564da70) Merged-In: Ib5df3bbc659d6a737a846fdf57cddee002e4e9ae
Diffstat (limited to 'common/netd/libnetdutils/ThreadUtilTest.cpp')
0 files changed, 0 insertions, 0 deletions