diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2022-08-30 11:35:50 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-01 06:37:33 +0000 |
commit | b827ddb9b02228fc8064d7e03bdc6f05535d5e03 (patch) | |
tree | 03e6b76212a6034af5605506820b8f55bbc738a5 /tests | |
parent | 5ab30ec1c81a48c8857fb8fbbeee607074a0996f (diff) | |
download | vboot-b827ddb9b02228fc8064d7e03bdc6f05535d5e03.tar.gz |
tests: Ensure auxfw sync runs after EC syncstabilize-15086.Bfirmware-ti50-prepvt-15086.Bfirmware-ti50-mp-15224.Bfirmware-ti50-mp-15090.B
Running auxfw sync after EC sync is intentional, and the order should
not be swapped. Therefore add a check in the mock vb2api_auxfw_sync().
BUG=none
TEST=make run2tests
BRANCH=none
Change-Id: I60104378d4abf509cd379dc30818d79dd0606ee3
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3863492
Reviewed-by: Hsuan Ting Chen <roccochen@chromium.org>
Commit-Queue: Hsuan Ting Chen <roccochen@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vb2_kernel_tests.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/vb2_kernel_tests.c b/tests/vb2_kernel_tests.c index 6d32eb2d..b82d6bf0 100644 --- a/tests/vb2_kernel_tests.c +++ b/tests/vb2_kernel_tests.c @@ -128,6 +128,8 @@ vb2_error_t vb2api_ec_sync(struct vb2_context *c) vb2_error_t vb2api_auxfw_sync(struct vb2_context *c) { + TEST_EQ(mock_ec_sync_called, 1, + " auxfw sync must happen after EC sync"); return VB2_SUCCESS; } |