Align /data partition rules with vts_fs_test. am: b53eeb6133 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/3022928 Change-Id: I2cc7b203b6c27f8c075c534b7de929a06e126dc1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/tests/boot_tests.cpp b/tests/boot_tests.cpp index c742721..e8f0a24 100644 --- a/tests/boot_tests.cpp +++ b/tests/boot_tests.cpp
@@ -120,10 +120,12 @@ struct statfs64 fs; ASSERT_GE(statfs64(path.c_str(), &fs), 0) << path; - ASSERT_EQ(fs.f_type, F2FS_SUPER_MAGIC); + ASSERT_TRUE(fs.f_type == F2FS_SUPER_MAGIC || fs.f_type == EXT4_SUPER_MAGIC) + << "Unexpected filesystem type: " << fs.f_type; auto entry = GetEntryForMountPoint(&fstab, mount_point); ASSERT_NE(entry, nullptr); - ASSERT_EQ(entry->fs_type, "f2fs"); + ASSERT_TRUE(entry->fs_type == "f2fs" || entry->fs_type == "ext4") + << "Unexpected filesystem type: " << entry->fs_type; } }