mirror of
https://github.com/rust-osdev/uefi-rs
synced 2026-06-08 17:17:36 +00:00
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.
This commit is contained in:
@@ -322,6 +322,16 @@ impl Cargo {
|
||||
rustflags.push_str(" --verbose");
|
||||
cmd.env("RUSTFLAGS", rustflags);
|
||||
}
|
||||
|
||||
// Skip the uefi-macros compilation "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.
|
||||
let toolchain = env::var("RUSTUP_TOOLCHAIN").unwrap_or_default();
|
||||
if toolchain.starts_with("nightly-") {
|
||||
println!("skipping uefi-macros ui tests for toolchain {toolchain}");
|
||||
tool_args.extend(["--skip", "ui"]);
|
||||
}
|
||||
}
|
||||
};
|
||||
cmd.arg(action);
|
||||
|
||||
Reference in New Issue
Block a user