commit | 5b227f34514299a5f833fe49f97984aa2225e550 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Thu May 26 21:44:00 2022 -0700 |
committer | David Anderson <dvander@google.com> | Fri May 27 19:01:59 2022 +0000 |
tree | d4a6bead6b2679683c330b14741241a1402943d5 | |
parent | 0d3b8d557f9a2ec7ce61b1b3110ec30e66403589 [diff] |
vts_fs_test: Require EROFS sysfs nodes. These were backported to android13-5.10 and should be present in T-launch kernels. Bug: 233926292 Test: vts_fs_test Change-Id: Ifb5ff6a200b081fe8696d5803d4a128740eb8e21 Merged-In: Ifb5ff6a200b081fe8696d5803d4a128740eb8e21 Ignore-AOSP-First: cherry-pick
diff --git a/fs_mgr/tests/vts_fs_test.cpp b/fs_mgr/tests/vts_fs_test.cpp index 8c49e4a..aac2cfd 100644 --- a/fs_mgr/tests/vts_fs_test.cpp +++ b/fs_mgr/tests/vts_fs_test.cpp
@@ -47,6 +47,8 @@ std::string fs; ASSERT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); EXPECT_THAT(fs, ::testing::HasSubstr("\terofs\n")); + + ASSERT_EQ(access("/sys/fs/erofs", F_OK), 0); } TEST(fs, PartitionTypes) {