Skip to content

Commit

Permalink
Auto merge of rust-lang#133291 - jieyouxu:exp-rustdoc-gui-test, r=<try>
Browse files Browse the repository at this point in the history
[EXPERIMENT] check npm path on the regular `x86_64-mingw` job

cc rust-lang#132721.
r? `@ghost`

try-job: x86_64-mingw
  • Loading branch information
bors committed Nov 21, 2024
2 parents 0b1bf71 + 052d21f commit b898596
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 b898596

Please sign in to comment.