diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-03-31 10:23:59 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-04-12 23:59:49 +0000 |
commit | 999bbb32ae6e9b9a339442615a61b4505d7ed1d9 (patch) | |
tree | ecd8734d77fd757af5a6aad3c85ad35193669f58 /cli_classic.c | |
parent | 881bf1739efc915a5906287c1f237d6a13037412 (diff) | |
download | flashrom-999bbb32ae6e9b9a339442615a61b4505d7ed1d9.tar.gz flashrom-999bbb32ae6e9b9a339442615a61b4505d7ed1d9.tar.bz2 flashrom-999bbb32ae6e9b9a339442615a61b4505d7ed1d9.zip |
tests/lifecycle.c: Deduce out io-setup-teardown do-pattern
The following do-block is quite error prone to do manually,
```
io_mock_register(&XXX_io);
run_probe_lifecycle(state, &XXX, "", "..");
io_mock_register(NULL);
```.
Hence, deduce out the common pattern and fold up into the common
worker function to handle state machine setup and teardown in a
consistent way.
BUG=b:227521116
TEST=`ninja test`.
Change-Id: Icc00acd980a027337acb079f5afc3cccdfe4c765
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/63231
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Daniel Campello <campello@chromium.org>
Diffstat (limited to 'cli_classic.c')
0 files changed, 0 insertions, 0 deletions