summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-02-29 19:44:36 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-02-29 19:44:36 +0000
commitdb17d4a7b3dad1275ceff9d4a18c5d94b43d6c02 (patch)
tree5b3b0945be873c7658e0780d8de02e564051bb1d
parent02fb1fe4e50a8ded536ab84d295400af32e2c2e0 (diff)
parente4be10887b9796e2a24c3c7a3ad70f584e9ad54e (diff)
downloadgsid-aml_wif_341810030.tar.gz
Snap for 11515599 from e4be10887b9796e2a24c3c7a3ad70f584e9ad54e to mainline-wifi-releaseaml_wif_341810030aml_wif_341711020aml_wif_341810030
Change-Id: I4277b32179f79a8902fae7ac16270370da7d8409
-rw-r--r--tests/boot_tests.cpp8
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();
}