Merge "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." am: 4ea99506b0
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2219605 Change-Id: I8e551a0bfaa92d457ffc4c2cac9ab1bceb70864f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
f02ac1c6fe
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