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:
parent
220d4aba05
commit
bfd3e38284
1 changed files with 3 additions and 0 deletions
3
fs_mgr/libsnapshot/vts_ota_config_test.cpp
Normal file → Executable file
3
fs_mgr/libsnapshot/vts_ota_config_test.cpp
Normal file → Executable 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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue