commit | 34e9eddef3928181297c478b4deea6261840da5a | [log] [tgz] |
---|---|---|
author | Alice Wang <aliceywang@google.com> | Mon Feb 10 09:19:51 2025 +0000 |
committer | Alice Wang <aliceywang@google.com> | Mon Feb 10 09:19:51 2025 +0000 |
tree | 73aded2fef2337ebcee91979f14af88fb0824c4c | |
parent | 1be0855af2f2ffeedc8fb8ce8f99e2205900f429 [diff] |
Run KeyMint VM test only when the feature is enabled Bug: 394409476 Test: atest VtsHalRemotelyProvisionedComponentTargetTest Change-Id: I444129fd5098645308b46d2d1207daa512489d4f
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."; }