Check app-attest-key feature supported while using ATTEST_KEY in tests.
Adding a check to skip the attest-key tests if
`android.hardware.keystore.app_attest_key` feature is not enabled.
Bug: 363867143
Test: atest keystore_client_tests
Change-Id: I4ef356b1924914bd7318b293e0b4bf3b1da55b59
diff --git a/keystore2/tests/keystore2_client_attest_key_tests.rs b/keystore2/tests/keystore2_client_attest_key_tests.rs
index e2eacc4..f723d02 100644
--- a/keystore2/tests/keystore2_client_attest_key_tests.rs
+++ b/keystore2/tests/keystore2_client_attest_key_tests.rs
@@ -562,6 +562,8 @@
#[test]
fn keystore2_attest_key_fails_with_invalid_attestation_id() {
skip_test_if_no_device_id_attestation_feature!();
+ skip_device_id_attestation_tests!();
+ skip_test_if_no_app_attest_key_feature!();
let sl = SecLevel::tee();