summaryrefslogtreecommitdiff
path: root/libutils/Unicode_test.cpp
diff options
context:
space:
mode:
authorYo Chiang <yochiang@google.com>2021-01-28 19:10:48 +0800
committerYo Chiang <yochiang@google.com>2021-01-29 14:12:43 +0000
commit41b617174156c151e4a5dd120d782a2d9bdecb80 (patch)
treefe78b6372af18843fe47ea0decc424634a869494 /libutils/Unicode_test.cpp
parenta28b67e9b67f585fe9dfeb3ddab3c752f8002f90 (diff)
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
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions