From 5d531a26c02b8f411ab896b536828580a2f2205a Mon Sep 17 00:00:00 2001 From: nagendra modadugu Date: Tue, 31 Mar 2020 15:55:01 -0700 Subject: [PATCH] Fix StrongBoxOnly test This test is expected to be run on non-StrongBox instances. Bug: 129282228 Test: StrongBoxOnly passes on TZ Change-Id: Ia6b274d097b4c698904d1c51daed821188a50510 --- keymaster/4.1/vts/functional/DeviceUniqueAttestationTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keymaster/4.1/vts/functional/DeviceUniqueAttestationTest.cpp b/keymaster/4.1/vts/functional/DeviceUniqueAttestationTest.cpp index 7ea3275851..2af7775dea 100644 --- a/keymaster/4.1/vts/functional/DeviceUniqueAttestationTest.cpp +++ b/keymaster/4.1/vts/functional/DeviceUniqueAttestationTest.cpp @@ -155,8 +155,8 @@ void check_attestation_record(AttestationRecord attestation, const HidlBuf& chal using std::string; using DeviceUniqueAttestationTest = Keymaster4_1HidlTest; -TEST_P(DeviceUniqueAttestationTest, StrongBoxOnly) { - if (SecLevel() != SecurityLevel::STRONGBOX) return; +TEST_P(DeviceUniqueAttestationTest, NonStrongBoxOnly) { + if (SecLevel() == SecurityLevel::STRONGBOX) return; ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder() .Authorization(TAG_NO_AUTH_REQUIRED)