commit | 1a0e4d0bf7c7e9b0dc76ef25920e976d3bd2267a | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Sat Aug 27 14:02:07 2022 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Wed Aug 31 11:32:54 2022 +0800 |
tree | 86f501f9922cf290ca2b5ff556ecd8a34ab650e5 | |
parent | bd9335d43dbc382b57bf30b17c0edff903e725fb [diff] |
adb-remount-test: Refactor check_eq & check_ne Just use bash [[ for regex compare, which result in shorter code and more robust. Simplify the messaging pipeline: If success, don't print anything and return 0. Let caller decide what to log. If failure and --warning, log error message and return 1. If failure and ! --warning, die with error message. Bug: 243116800 Test: adb-remount-test Change-Id: Ie5426ff3fa57395aa6b4fe71c9bf96bd8e9afc35