Skip to content

Commit 234405c

Browse files
authored
fix(revme): Statetest stop exec when print output is true (bluealloy#1995)
* fix(revme): statetest remove redundant json output * fix(revme): Statetest stop exec when print output is true
1 parent 88c5a94 commit 234405c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: bins/revme/src/cmd/statetest/runner.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,10 @@ pub fn execute_test_suite(
482482
(e, res)
483483
};
484484

485-
// Print only once or
486-
// if we are already in trace mode, just return error
485+
// Print only once or if we are already in trace mode, just return error
486+
// If trace is true that print_json_outcome will be also true.
487487
static FAILED: AtomicBool = AtomicBool::new(false);
488-
if trace || FAILED.swap(true, Ordering::SeqCst) {
488+
if print_json_outcome || FAILED.swap(true, Ordering::SeqCst) {
489489
return Err(TestError {
490490
name: name.clone(),
491491
path: path.clone(),

Diff for: bins/revme/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ use clap::Parser;
22
use revme::cmd::{Error, MainCmd};
33

44
fn main() -> Result<(), Error> {
5-
MainCmd::parse().run().inspect_err(|e| eprintln!("{e:?}"))
5+
MainCmd::parse().run().inspect_err(|e| println!("{e:?}"))
66
}

0 commit comments

Comments
 (0)