platform_system_core/fs_mgr/tests
Yo Chiang 41b6171741 fs_mgr: Harden adb-remount-test.sh on read-only filesystem
I'm getting this error:

  [  FAILED  ] /cache/overlay wipe

If /cache is not mounted, in which case it would be RO and empty, then
don't try to do `rm -rf /cache/overlay` as it would fail.
If /cache is RO and /cache/overlay doesn't exist, then `rm -f` would
fail, albeit the "-f" flag, this is a toybox bug.
Check file path existence before `rm`-ing so we don't trigger this error.

Change `ls <type> <path>` to `test <type> <path>` for robust checking.

Bug: 178683776
Bug: 165925766
Bug: 178771232
Test: adb-remount-test.sh on GSI + Pixel
Change-Id: Ie95de690d96146892127ab11a461d80cb6cb56fa
2021-01-29 14:12:43 +00:00
..
src/com/android/tests/vendoroverlay Add presubmit test for vendor overlay 2019-02-16 08:24:35 +09:00
adb-remount-sh.xml Increase adb-remount timeout 2019-04-03 08:27:29 -07:00
adb-remount-test.sh fs_mgr: Harden adb-remount-test.sh on read-only filesystem 2021-01-29 14:12:43 +00:00
Android.bp Remove vts10 related configs 2020-10-06 13:52:44 -07:00
AndroidTest.xml Add RootTargetPreparer for CtsInitTestCases and CtsFsMgrTestCases 2020-04-14 18:57:07 +01:00
file_wait_test.cpp Introduce inotify-based replacements for fs_mgr_wait_for_file. 2019-06-18 15:27:09 -07:00
fs_mgr_test.cpp Merge "get_mounted_entry_for_userdata: Realpath block devices from fstabs" am: 74429fc121 am: 2b45a4ef85 2020-04-07 12:27:45 +00:00
vendor-overlay-test.xml Add presubmit test for vendor overlay 2019-02-16 08:24:35 +09:00