summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2022-05-26 21:44:00 -0700
committerDavid Anderson <dvander@google.com>2022-05-27 19:01:59 +0000
commit5b227f34514299a5f833fe49f97984aa2225e550 (patch)
treed4a6bead6b2679683c330b14741241a1402943d5
parent0d3b8d557f9a2ec7ce61b1b3110ec30e66403589 (diff)
downloadcore-5b227f34514299a5f833fe49f97984aa2225e550.tar.gz
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
-rw-r--r--fs_mgr/tests/vts_fs_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs_mgr/tests/vts_fs_test.cpp b/fs_mgr/tests/vts_fs_test.cpp
index 8c49e4a0f..aac2cfd9b 100644
--- a/fs_mgr/tests/vts_fs_test.cpp
+++ b/fs_mgr/tests/vts_fs_test.cpp
@@ -47,6 +47,8 @@ TEST(fs, ErofsSupported) {
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) {