Skip to content

Commit

Permalink
[EXPERIMENT] check npm path on the regular x86_64-mingw job
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Nov 21, 2024
1 parent 318f96a commit 052d21f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/rustdoc-gui-test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ use config::Config;
mod config;

fn get_browser_ui_test_version_inner(npm: &Path, global: bool) -> Option<String> {
eprintln!("XXX(experimental): npm is `{:?}`", npm.display());

let mut command = Command::new(&npm);
command.arg("list").arg("--parseable").arg("--long").arg("--depth=0");
if global {
command.arg("--global");
}

eprintln!("XXX(experimental): npm cmd: {command:?}");

let lines = match command.output() {
Ok(output) => String::from_utf8_lossy(&output.stdout).into_owned(),
Err(e) => {
Expand Down

0 comments on commit 052d21f

Please sign in to comment.