Skip to content

Commit 4276895

Browse files
xtask: Skip uefi-macros ui tests on the nightly toolchain
These tests are sensitive to compiler version, and sometimes the output on nightly doesn't match the stable toolchain.
1 parent 4b94bd6 commit 4276895

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

xtask/src/cargo.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,16 @@ impl Cargo {
322322
rustflags.push_str(" --verbose");
323323
cmd.env("RUSTFLAGS", rustflags);
324324
}
325+
326+
// Skip the uefi-macros compilation "ui" tests on the nightly
327+
// toolchain. These tests are sensitive to compiler version, and
328+
// sometimes the output on nightly doesn't match the stable
329+
// toolchain.
330+
let toolchain = env::var("RUSTUP_TOOLCHAIN").unwrap_or_default();
331+
if toolchain.starts_with("nightly-") {
332+
println!("skipping uefi-macros ui tests for toolchain {toolchain}");
333+
tool_args.extend(["--skip", "ui"]);
334+
}
325335
}
326336
};
327337
cmd.arg(action);

0 commit comments

Comments
 (0)