[test] Minor cleanup in rom_e2e_bootstrap_entry
Signed-off-by: Alphan Ulusoy <alphan@google.com>
diff --git a/sw/host/tests/rom/e2e_bootstrap_entry/src/main.rs b/sw/host/tests/rom/e2e_bootstrap_entry/src/main.rs
index ae99fb7..ffa3d48 100644
--- a/sw/host/tests/rom/e2e_bootstrap_entry/src/main.rs
+++ b/sw/host/tests/rom/e2e_bootstrap_entry/src/main.rs
@@ -118,11 +118,8 @@
// Now watch the console for the exit conditions.
let result = console.interact(&*uart, None, Some(&mut std::io::stdout()))?;
- match result {
- ExitStatus::ExitSuccess => {}
- _ => {
- bail!("FAIL: {:?}", result);
- }
+ if result != ExitStatus::ExitSuccess {
+ bail!("FAIL: {:?}", result);
};
// Now check whether the SPI device is responding to status messages
let spi = transport.spi("0")?;
@@ -147,11 +144,8 @@
// Now watch the console for the exit conditions.
let result = console.interact(&*uart, None, Some(&mut std::io::stdout()))?;
- match result {
- ExitStatus::ExitSuccess => {}
- _ => {
- bail!("FAIL: {:?}", result);
- }
+ if result != ExitStatus::ExitSuccess {
+ bail!("FAIL: {:?}", result);
};
// Now check whether the SPI device is responding to commands.