Merge "vts_fs_test: Only check /data and /metadata for rw partitions." into main

This commit is contained in:
Treehugger Robot 2024-01-08 23:59:05 +00:00 committed by Gerrit Code Review
commit dbaab24de3

View file

@ -133,9 +133,10 @@ TEST(fs, PartitionTypes) {
std::vector<std::string> allowed = {"erofs", "ext4", "f2fs"};
EXPECT_NE(std::find(allowed.begin(), allowed.end(), entry.fs_type), allowed.end())
<< entry.mount_point;
} else {
} else if (std::find(data_fs.begin(), data_fs.end(), entry.mount_point) != data_fs.end()) {
std::vector<std::string> allowed = {"ext4", "f2fs"};
EXPECT_NE(std::find(allowed.begin(), allowed.end(), entry.fs_type), allowed.end());
EXPECT_NE(std::find(allowed.begin(), allowed.end(), entry.fs_type), allowed.end())
<< entry.mount_point << ", " << entry.fs_type;
}
}
}