Skip to content

Commit

Permalink
Don't pass --target twice in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed May 2, 2024
1 parent 88ec610 commit ebaca5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cargo-auditable/tests/it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ where
.args(args);

if let Ok(target) = std::env::var("AUDITABLE_TEST_TARGET") {
command.arg(format!("--target={target}"));
if args.iter().all(|arg| !arg.starts_with("--target")) {
command.arg(format!("--target={target}"));
}
}

for (name, value) in env {
Expand Down

0 comments on commit ebaca5a

Please sign in to comment.