Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 442345b7 authored by David Anderson's avatar David Anderson
Browse files

vts_fs_test: Only check /data and /metadata for rw partitions.

Some rw /proc/mounts entries are FUSE.

Also, add some diagnostics for failures.

Bug: 318962836
Test: vts_fs_test on Pixel
Change-Id: I85dec8b37f1a061b1eca597aba3887b598b699f5
parent f48c4ad3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
        }
    }
}