Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Nov 10, 2023
1 parent 36eadc0 commit 407296b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/test-utils/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,12 @@ pub fn run_install_commands(root: &Path) {
let contains = |path: &str| root_files.iter().any(|p| p.to_str().unwrap().contains(path));
let run = |args: &[&str]| {
let mut cmd = Command::new(args[0]);
cmd.args(&args[1..]).current_dir(root);
cmd.args(&args[1..]);
eprintln!("cd {}; {cmd:?}", root.display());
assert!(root.is_absolute());
let prev = std::env::current_dir().unwrap();
env::set_current_dir(root).unwrap();
let st = cmd.status().unwrap();
eprintln!("\n\n{st:?}");
eprintln!("\n\n{cmd:?}: {st:?}");
env::set_current_dir(prev).unwrap();
};
let maybe_run = |path: &str, args: &[&str]| {
Expand Down

0 comments on commit 407296b

Please sign in to comment.