Skip to content

Commit

Permalink
Auto merge of #9843 - ehuss:fix-test-cargo-env, r=alexcrichton
Browse files Browse the repository at this point in the history
Fix test not to rely on `cargo` in PATH.

This fixes a test that was trying to execute `cargo` from PATH.  This test doesn't work on rust-lang/rust where the rustup installation is removed, and thus there is no `cargo` in PATH.
  • Loading branch information
bors committed Aug 26, 2021
2 parents 77a0379 + e0bd187 commit f559c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ fn fix_with_run_cargo_in_proc_macros() {
#[proc_macro]
pub fn foo(_input: TokenStream) -> TokenStream {
let output = std::process::Command::new("cargo")
let output = std::process::Command::new(env!("CARGO"))
.args(&["metadata", "--format-version=1"])
.output()
.unwrap();
Expand Down

0 comments on commit f559c10

Please sign in to comment.