Mark ComposHostTestCases as needing API 33
The test fails horribly on Android R because the ART module isn't
present.
But there's no point running it before Android T since CompOs isn't
present. (The test should be skipped then, but I suspect this will be
more efficient.)
Bug: 264468987
Test: atest ComposHostTestCases
Change-Id: I332538a21a21d549d105fae47a6a5c03d1c2836c
diff --git a/compos/tests/AndroidTest.xml b/compos/tests/AndroidTest.xml
index f9e6837..4b414f1 100644
--- a/compos/tests/AndroidTest.xml
+++ b/compos/tests/AndroidTest.xml
@@ -16,6 +16,10 @@
<configuration description="Tests for CompOS">
<option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.art.apex" />
+ <!-- Only run tests if the device under test is SDK version 33 (Android 13) or above. -->
+ <object type="module_controller"
+ class="com.android.tradefed.testtype.suite.module.Sdk33ModuleController" />
+
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
<option name="force-root" value="true" />
</target_preparer>