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:
Nicholas Bishop
2025-06-19 15:48:15 -04:00
parent 4b94bd67e6
commit 427689557f
+10
View File
@@ -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);