diff --git a/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java b/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java index 49d2fe42..ca4d1d06 100644 --- a/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java +++ b/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java @@ -195,6 +195,11 @@ public final class AVFHostTestCase extends MicrodroidHostTestCaseBase { } assertWithMessage("Failed to set PKVM status. Reason: " + result) .that(result.toString()).ignoringCase().contains(expectedOutput); + + // Skip the test if running on a build with pkvm_enabler. Disabling + // pKVM for such build results in a bootloop. + assertWithMessage("Expected build with PKVM status misc=auto. Reason: " + result) + .that(result.toString()).ignoringCase().contains("misc=auto"); } private void rebootFromBootloaderAndWaitBootCompleted() throws Exception {