diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-18 20:32:48 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-18 20:32:48 +0000 |
commit | 3c2ca4c0cda230c04900904a720d18dfbad866ed (patch) | |
tree | 10b119105569d017abd8eb0f84689687440235e0 | |
parent | 9ac11670b62988a515451635a63d633a7edb3d5e (diff) | |
parent | 59f2b11c482a41130bc5c41ace5a0ffe3aa4b382 (diff) | |
download | gsid-android13-tests-release.tar.gz |
Snap for 11733548 from 59f2b11c482a41130bc5c41ace5a0ffe3aa4b382 to android13-tests-releaseandroid13-tests-release
Change-Id: I4d8e5ac12e5c1845c03e303273d41339436bd800
-rw-r--r-- | tests/boot_tests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/boot_tests.cpp b/tests/boot_tests.cpp index 6264843..9d5907c 100644 --- a/tests/boot_tests.cpp +++ b/tests/boot_tests.cpp @@ -109,10 +109,12 @@ TEST(MetadataPartition, FsType) { 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; } } |