Skip to content

Commit

Permalink
Auto merge of #3692 - malbarbo:test-args, r=alexcrichton
Browse files Browse the repository at this point in the history
Pass multiples --test-args to the tester

Like --cfg, --test-args accept multiple matches, we should use it and
avoid some unexpected behavior joinning the arguments with space.
  • Loading branch information
bors committed Feb 14, 2017
2 parents 6a93970 + e6fdcce commit 2c2e07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/ops/cargo_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ fn run_doc_tests(options: &TestOptions,
p.arg("-L").arg(native_dep);
}

if test_args.len() > 0 {
p.arg("--test-args").arg(&test_args.join(" "));
for arg in test_args {
p.arg("--test-args").arg(arg);
}

if let Some(cfgs) = compilation.cfgs.get(&package.package_id()) {
Expand Down

0 comments on commit 2c2e07f

Please sign in to comment.