diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-29 11:11:24 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-29 11:11:24 +0000 |
commit | 217eaf3c51ef0d510d0720a2f83428e9f34c2384 (patch) | |
tree | 5b3b0945be873c7658e0780d8de02e564051bb1d | |
parent | 27ea5e16b5fa36b0eeea5c6dd96429cd7088b162 (diff) | |
parent | e4be10887b9796e2a24c3c7a3ad70f584e9ad54e (diff) | |
download | gsid-aml_hef_341811030.tar.gz |
Snap for 11514227 from e4be10887b9796e2a24c3c7a3ad70f584e9ad54e to mainline-healthfitness-releaseaml_hef_341811030aml_hef_341717050aml_hef_341811030
Change-Id: I6acbfae0213a044e42c38016b5ee7fd7109bd0d9
-rw-r--r-- | tests/boot_tests.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/boot_tests.cpp b/tests/boot_tests.cpp index 6aeded3..6264843 100644 --- a/tests/boot_tests.cpp +++ b/tests/boot_tests.cpp @@ -35,6 +35,12 @@ using android::hardware::weaver::V1_0::IWeaver; using android::hardware::weaver::V1_0::WeaverConfig; using android::hardware::weaver::V1_0::WeaverStatus; + +static bool IsAutomotiveDevice() { + auto hw_type = android::base::GetProperty("ro.hardware.type", ""); + return hw_type == "automotive"; +} + TEST(MetadataPartition, FirstStageMount) { Fstab fstab; if (ReadFstabFromDt(&fstab)) { @@ -85,7 +91,7 @@ TEST(Weaver, MinimumSlots) { } TEST(MetadataPartition, FsType) { - if (GetVsrLevel() < __ANDROID_API_T__) { + if (GetVsrLevel() < __ANDROID_API_T__ || IsAutomotiveDevice()) { GTEST_SKIP(); } |