Skip to content

Commit 41652cd

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 41652cd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

xtask/src/cargo.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,17 @@ 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+
{
333+
println!("skipping uefi-macros ui tests for toolchain {toolchain}");
334+
tool_args.extend(["--skip", "ui"]);
335+
}
325336
}
326337
};
327338
cmd.arg(action);

0 commit comments

Comments
 (0)