commit | 57ace4ffd873ca085c465947d25178056ef3cea5 | [log] [tgz] |
---|---|---|
author | Nikita Ioffe <ioffe@google.com> | Fri Nov 18 00:42:33 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Nov 18 00:42:33 2022 +0000 |
tree | 966e6eb181448cbfa8cffa2c9422537bd49167a5 | |
parent | 35662e09daa2702b1daf8d8060e4a8f0f267d2ec [diff] | |
parent | b851d721f2db852cd5a621b4d249948245673f16 [diff] |
Skip tests on devices without virtualization_framework sys feature am: 6ce2215cab am: b851d721f2 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Virtualization/+/2307101 Change-Id: Iae73c6b8a99dc1d13bce56b467b55a4d993ec4d6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java b/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java index 43fe615..9bcd1d3 100644 --- a/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java +++ b/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java
@@ -100,6 +100,9 @@ public static void testIfDeviceIsCapable(ITestDevice androidDevice) throws Exception { assumeTrue("Need an actual TestDevice", androidDevice instanceof TestDevice); TestDevice testDevice = (TestDevice) androidDevice; + assumeTrue( + "Requires VM support", + testDevice.hasFeature("android.software.virtualization_framework")); assumeTrue("Requires VM support", testDevice.supportsMicrodroid()); }