summaryrefslogtreecommitdiff
path: root/code_coverage/Android.bp
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
commitd57a727754b6c08733826b41e1ed4e5368289aa3 (patch)
treefe78b6372af18843fe47ea0decc424634a869494 /code_coverage/Android.bp
parent91eb79fc94af273cf1e601250d39bf9628140a44 (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 'code_coverage/Android.bp')
0 files changed, 0 insertions, 0 deletions