vts_fs_test: Require EROFS sysfs nodes. am: 5b227f3451

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18636032

Change-Id: Ic976d0f6954342ab3eac142e6984918376769d8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
David Anderson 2022-05-27 21:45:07 +00:00 committed by Automerger Merge Worker
commit 346f3905f1
1 changed files with 2 additions and 0 deletions

View File

@ -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) {