Run KeyMint VM test only when the feature is enabled am: 34e9eddef3

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3482933

Change-Id: If6322a4e1e618649b49a28656cf4625576b56855
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp b/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp
index 65e93c6..0696ada 100644
--- a/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp
+++ b/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp
@@ -405,7 +405,7 @@
  * is non-normal.
  */
 TEST(NonParameterizedTests, unlockedBootloaderStatesImpliesNonNormalKeyMintInAVmDiceChain) {
-    if (::android::base::GetBoolProperty("trusty.security_vm.keymint.enabled", false)) {
+    if (!::android::base::GetBoolProperty("trusty.security_vm.keymint.enabled", false)) {
         GTEST_SKIP() << "The KeyMint (" << DEFAULT_INSTANCE_NAME
                      << ") instance is not inside a VM.";
     }