diff options
author | Patryk Duda <pdk@semihalf.com> | 2022-03-22 09:41:28 +0100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-30 09:30:34 +0000 |
commit | a38a395160a0af084e6fe3c03e53cd0e4c74e40e (patch) | |
tree | 9ec0b3089a16dc93f29ccb286d0ac72c3335e257 /include/test_util.h | |
parent | 52b8fb0dac7e3981e465b4c499d0607f227cfbfe (diff) | |
download | chrome-ec-a38a395160a0af084e6fe3c03e53cd0e4c74e40e.tar.gz |
test_util: Add function to set next state without reboot
Some tests (eg. panic data tests) will require to set the next state
without immediate reboot. In this case the test is responsible to reboot
the board with one of the following ways - crash, hard reboot and
soft reboot.
BUG=b:221087395
BRANCH=none
TEST=Run some EC tests. Make sure test passes
Signed-off-by: Patryk Duda <pdk@semihalf.com>
Change-Id: Idf75fb4c2f4313c03f68ed99e95b14d0e0807b0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3555748
Reviewed-by: Andrea Grandi <agrandi@google.com>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Patryk Duda <patrykd@google.com>
Diffstat (limited to 'include/test_util.h')
-rw-r--r-- | include/test_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/test_util.h b/include/test_util.h index 62bd468924..9dcb31297f 100644 --- a/include/test_util.h +++ b/include/test_util.h @@ -256,6 +256,9 @@ uint32_t test_get_state(void); */ void test_clean_up(void); +/* Set the next step */ +void test_set_next_step(enum test_state_t step); + /* Set the next step and reboot */ void test_reboot_to_next_step(enum test_state_t step); |