diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-10-23 06:49:26 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-23 13:01:33 -0700 |
commit | 4840df70f7bb8a8a13df6ad28a55be0ebf7de3ab (patch) | |
tree | 03fb6ed312a0c9cbb4f2e7087a96e9a92170aa11 /tests/futility/test_update.sh | |
parent | 6b5f9978fbfcfcab96b56a53429c9fd377176a9c (diff) | |
download | vboot-4840df70f7bb8a8a13df6ad28a55be0ebf7de3ab.tar.gz |
futility: update: Add `--host_only` argument
The legacy firmware updater can update explicitly only some type of
images by using `--[no]update_main`, `--[no]update_ec`,
`--[no]update_pd`.
Since software sync is introduced, usually it does not make sense to
only update EC or PD; instead the real request is to "ignore provided EC
and PD images and update only host".
The new `--host_only` argument provides an easy way to ignore images in
command line (`--ec_image`, `--pd_image`) and archives (`ec.bin`,
`pd.bin`).
BUG=chromium:875551
TEST=TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility
BRANCH=None
Change-Id: Idf403680880cd58a00867172ccec97fd60c1b826
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1295210
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/futility/test_update.sh')
-rwxr-xr-x | tests/futility/test_update.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh index 3838361c..740e53cf 100755 --- a/tests/futility/test_update.sh +++ b/tests/futility/test_update.sh @@ -182,6 +182,11 @@ test_update "Full update (GBB=0 -> 0)" \ "${FROM_IMAGE}.gbb0" "${TMP}.expected.full.gbb0" \ -i "${TO_IMAGE}" --wp=0 --sys_props 0,0x10001,1 +test_update "Full update (--host_only)" \ + "${FROM_IMAGE}" "${TMP}.expected.full" \ + -i "${TO_IMAGE}" --wp=0 --sys_props 0,0x10001,1 \ + --host_only --ec_image non-exist.bin --pd_image non_exist.bin + # Test RW-only update. test_update "RW update" \ "${FROM_IMAGE}" "${TMP}.expected.rw" \ |