diff options
author | David Drysdale <drysdale@google.com> | 2024-05-02 06:16:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-02 06:16:55 +0000 |
commit | 5fcef477252975694a2c7309b561b11e4c57fe87 (patch) | |
tree | 2c7196570c583ee1f9ef92290fac0abda90e0678 | |
parent | 36b0579da0e287abb0dc0599c05a09e639550140 (diff) | |
parent | 841d9d0fa55b2ab235b3815e8cdaae66008ccad8 (diff) | |
download | cts-android13-tests-dev.tar.gz |
Merge "Skip attestation test if device doesn't support it" into android13-tests-devandroid13-tests-dev
-rw-r--r-- | tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java b/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java index 19bb686f094..109b5b899de 100644 --- a/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java +++ b/tests/tests/keystore/src/android/keystore/cts/KeyAttestationTest.java @@ -371,6 +371,7 @@ public class KeyAttestationTest { public void testAttestationKmVersionMatchesFeatureVersion() throws Exception { if (getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_PC)) return; + assumeTrue("Device does not support attestation", TestUtils.isAttestationSupported()); String keystoreAlias = "test_key"; Date now = new Date(); @@ -416,6 +417,7 @@ public class KeyAttestationTest { public void testAttestationKmVersionMatchesFeatureVersionStrongBox() throws Exception { if (getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_PC)) return; + assumeTrue("Device does not support attestation", TestUtils.isAttestationSupported()); int keyStoreFeatureVersionStrongBox = TestUtils.getFeatureVersionKeystoreStrongBox(getContext()); |