Skip to content

Commit

Permalink
Merge branch 'shashi/issue14403' of https://github.com/ShashiSugrim/c…
Browse files Browse the repository at this point in the history
…argo into shashi/issue14403
  • Loading branch information
ShashiSugrim committed Aug 19, 2024
2 parents 60f6b41 + 844600e commit 6806579
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cargo/ops/cargo_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ fn run_doc_tests(
gctx.shell().status("Doc-tests", unit.target.name())?;
let mut p = compilation.rustdoc_process(unit, *script_meta)?;

let color_arg = match color {
ColorChoice::Always => "always",
ColorChoice::Never => "never",
ColorChoice::CargoAuto => "auto",
};
p.arg("--color").arg(color_arg);

for (var, value) in env {
p.env(var, value);
}
Expand Down

0 comments on commit 6806579

Please sign in to comment.