Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaicalinluca committed Oct 26, 2023
1 parent db56377 commit 48d013b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions framework/meta/src/cmd/standalone/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn test(test_args: &TestArgs) {
args.extend(["./"]);

if go {
println!("{}", format!("If scen parameter is true, it will override the go parameter. Executing scenarios...").yellow());
println!("{}", "If scen parameter is true, it will override the go parameter. Executing scenarios...".yellow());
}
} else if go {
args.extend(["test", "--features", "multiversx-sc-scenario/run-go-tests"]);
Expand All @@ -31,7 +31,14 @@ pub fn test(test_args: &TestArgs) {
.args(args.clone())
.current_dir(path)
.status()
.expect(&format!("Failed to run program: {program} {:?}", args).bright_red());
.unwrap_or_else(|_| {
panic!(
"{}",
format!("Failed to run program: {program} {:?}", args)
.bright_red()
.to_string()
)
});

println!("Process finished with: {status}");
assert!(status.success());
Expand Down

0 comments on commit 48d013b

Please sign in to comment.