summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2020-10-13 15:03:20 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-15 02:17:29 +0000
commitee0b21b31c48c2d9bb65a020643271d435edb0d9 (patch)
tree1a017d8f38028e8a8365e43eb3eed5e545706804 /tests
parent86f6ce865157a35c3c4e1aab3f75b45aac2c9720 (diff)
downloadvboot-ee0b21b31c48c2d9bb65a020643271d435edb0d9.tar.gz
futility: update: support multi-line quirks
To support loading quirks from external files, we want to skip tab (\t) and new line characters (\n, \r). BRANCH=none BUG=b:169284414 TEST=make runtests Change-Id: If314d6cf36907837ce9c36b73337976ee0c6fad1 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2467305 Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Commit-Queue: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/futility/test_update.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh
index 57b3f460..655bab4a 100755
--- a/tests/futility/test_update.sh
+++ b/tests/futility/test_update.sh
@@ -327,6 +327,11 @@ test_update "Full update (--quirks enlarge_image)" \
"${FROM_IMAGE}.large" "${TMP}.expected.large" --quirks enlarge_image \
-i "${TO_IMAGE}" --wp=0 --sys_props 0,0x10001,1
+test_update "Full update (multi-line --quirks enlarge_image)" \
+ "${FROM_IMAGE}.large" "${TMP}.expected.large" --quirks '
+ enlarge_image
+ ' -i "${TO_IMAGE}" --wp=0 --sys_props 0,0x10001,1
+
test_update "Full update (--quirks unlock_me_for_update)" \
"${FROM_IMAGE}" "${TMP}.expected.me_unlocked" \
--quirks unlock_me_for_update \