diff --git a/fs_mgr/tests/vts_fs_test.cpp b/fs_mgr/tests/vts_fs_test.cpp index 2f2db0c6c..9503072d2 100644 --- a/fs_mgr/tests/vts_fs_test.cpp +++ b/fs_mgr/tests/vts_fs_test.cpp @@ -133,9 +133,10 @@ TEST(fs, PartitionTypes) { std::vector 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 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; } } }