diff options
author | Evan Benn <evanbenn@chromium.org> | 2022-08-17 17:37:40 +1000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-17 18:18:04 +0000 |
commit | 9b08a3c4806153256e13a0d8e9019d6a387becd5 (patch) | |
tree | fc702a9dc60591dcda6e569c2deb4d3d5229ef68 /tests/futility/test_update.sh | |
parent | 73bc2a9a0af97915b351a1ced0d6d16a0c369559 (diff) | |
download | vboot-release-R106-15054.B.tar.gz |
tests/futility/test_update.sh: Document test_update functionstabilize-15054.98.Bstabilize-15054.26.Bstabilize-15054.115.Brelease-R106-15054.B
BUG=b:231084609
BRANCH=None
TEST=None
Change-Id: Id76f2469faa13c136c6ec2761577acec4ad810e5
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3831833
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'tests/futility/test_update.sh')
-rwxr-xr-x | tests/futility/test_update.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh index 8d8a559e..df6c77bc 100755 --- a/tests/futility/test_update.sh +++ b/tests/futility/test_update.sh @@ -160,6 +160,12 @@ cp -f "${TMP}.expected.full" "${TMP}.expected.full.empty_rw_vpd" RW_VPD:"${TMP}.to/RW_VPD" patch_file "${TMP}.expected.full.empty_rw_vpd" FMAP 0x3fc "$(printf '\010')" +# Has 3 modes: +# 1. $3 = "!something", run command, expect failure, +# grep for something in log, fail if it is not present +# 2. $3 = "something", run command, expect success, +# cmp output to file named $3, fail if they are not the same +# 3. $3 = "!", run command, expect success, fail to find a file named ! test_update() { local test_name="$1" local emu_src="$2" |