diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-09-28 17:01:32 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-02 09:17:11 -0700 |
commit | bbe5fda1e8f35bd242ba2e2766a110bada4389e4 (patch) | |
tree | 8370f74f178601a85ade29a1a65f1f3b2721a3ae /tests/futility | |
parent | 6d211585f519a3ace76b01a372523207fb695a1c (diff) | |
download | vboot-bbe5fda1e8f35bd242ba2e2766a110bada4389e4.tar.gz |
futility: updater: Support reading main image from stdin
"Can we make futility support stdin like flashrom? I typically flash with:
ssh root@DUT flashrom -p host - < foo.bin"
Yes we can:
ssh root@DUT futility update -i - < foo.bin
BUG=chromium:875551
TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility
BRANCH=None
Change-Id: Ib1ee5d4c882620e3b6f56fd5e4692b4829cf025a
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1251141
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Diffstat (limited to 'tests/futility')
-rwxr-xr-x | tests/futility/test_update.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh index d45e114c..655d17dc 100755 --- a/tests/futility/test_update.sh +++ b/tests/futility/test_update.sh @@ -170,6 +170,10 @@ test_update "Full update (Skip TPM check with --force)" \ "${FROM_IMAGE}" "${TMP}.expected.full" \ -i "${TO_IMAGE}" --wp=0 --sys_props 0,-1,1 --force +test_update "Full update (from stdin)" \ + "${FROM_IMAGE}" "${TMP}.expected.full" \ + -i - --wp=0 --sys_props 0,-1,1 --force <"${TO_IMAGE}" + # Test RW-only update. test_update "RW update" \ "${FROM_IMAGE}" "${TMP}.expected.rw" \ |