diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-22 00:24:36 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-22 00:24:36 +0000 |
commit | 6872ce5c92668f819c06013196ba51416bb61ab6 (patch) | |
tree | 2d18098f82b4440a1f147f73c821fe5c0383c213 | |
parent | e8cbdc6ab1aafd286ebeff67640434c0319268b0 (diff) | |
parent | 2b27b8f9e624618081886fb79869991bc30c26ed (diff) | |
download | gsid-android14-qpr3-s2-release.tar.gz |
Snap for 11479893 from 2b27b8f9e624618081886fb79869991bc30c26ed to 24Q2-releaseandroid-14.0.0_r54android-14.0.0_r53android-14.0.0_r52android-14.0.0_r51android-14.0.0_r50android14-qpr3-s2-releaseandroid14-qpr3-release
Change-Id: Ic45f564fd17d0d607a68b95d69d72eea65e45467
-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(); } |