Some device that platform base on android12 doesn't support A/B update, it looks virtual A/B is also not mandatory. so this test case should check ro.vendor.api_level first.

test:
 run vts -m vts_ota_config_test -t VAB#Enabled

issue:
 245441425

Change-Id: I1795c931b28fd5fe28aa0f23717d4238fb352d37
This commit is contained in:
biandonglei 2022-09-17 14:43:50 +08:00 committed by 卞栋磊
parent 220d4aba05
commit bfd3e38284

3
fs_mgr/libsnapshot/vts_ota_config_test.cpp Normal file → Executable file
View file

@ -22,6 +22,9 @@ static int GetVsrLevel() {
}
TEST(VAB, Enabled) {
if (!android::base::GetBoolProperty("ro.build.ab_update", false) && (GetVsrLevel() < __ANDROID_API_T__)) {
GTEST_SKIP();
}
ASSERT_TRUE(android::base::GetBoolProperty("ro.virtual_ab.enabled", false));
if (GetVsrLevel() < __ANDROID_API_T__) {
GTEST_SKIP();