mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Use correct version of cargo in test
This commit is contained in:
parent
805f424535
commit
40a387c4bd
@ -2,7 +2,6 @@ use cargo_test_support::compare::assert_ui;
|
|||||||
use cargo_test_support::curr_dir;
|
use cargo_test_support::curr_dir;
|
||||||
use cargo_test_support::CargoCommand;
|
use cargo_test_support::CargoCommand;
|
||||||
use cargo_test_support::Project;
|
use cargo_test_support::Project;
|
||||||
use cargo_test_support::TestEnv;
|
|
||||||
|
|
||||||
use crate::cargo_remove::init_registry;
|
use crate::cargo_remove::init_registry;
|
||||||
|
|
||||||
@ -14,9 +13,7 @@ fn case() {
|
|||||||
let cwd = &project_root;
|
let cwd = &project_root;
|
||||||
|
|
||||||
// run the metadata command to populate the cache
|
// run the metadata command to populate the cache
|
||||||
let cargo = std::env::var_os("CARGO").unwrap();
|
snapbox::cmd::Command::cargo_ui()
|
||||||
snapbox::cmd::Command::new(cargo)
|
|
||||||
.test_env()
|
|
||||||
.arg("metadata")
|
.arg("metadata")
|
||||||
.current_dir(cwd)
|
.current_dir(cwd)
|
||||||
.assert()
|
.assert()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user