[go: up one dir, main page]

Skip to content

Commit

Permalink
test(integration): make fmt test not run fmt on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
elkowar committed Jan 11, 2023
1 parent 82667fc commit 642e092
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions crates/bazed/tests/it/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ fn cargo_fmt_check() {
.output()
.unwrap();

if !output.status.success() {
Command::new("cargo")
.arg("fmt")
.current_dir(project_root())
.output()
.unwrap();
panic!("code wasn't formatted");
}
assert!(output.status.success());
}

#[test]
Expand Down

0 comments on commit 642e092

Please sign in to comment.