Skip to content

Commit 642e259

Browse files
JamesbarfordAmanieu
authored andcommitted
change how the test is run
1 parent c9d1483 commit 642e259

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

.github/workflows/main.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ jobs:
5656
os: ubuntu-latest
5757
- tuple: aarch64-unknown-linux-gnu
5858
os: ubuntu-latest
59-
- target:
60-
tuple: aarch64_be-unknown-linux-gnu
59+
- tuple: aarch64_be-unknown-linux-gnu
6160
os: ubuntu-latest
6261
- tuple: riscv64gc-unknown-linux-gnu
6362
os: ubuntu-latest

crates/intrinsic-test/src/main.rs

+7-19
Original file line numberDiff line numberDiff line change
@@ -594,29 +594,17 @@ fn compare_outputs(
594594
))
595595
.output();
596596

597-
let rust = if target != "aarch64_be-unknown-linux-gnu" {
598-
Command::new("sh")
599-
.current_dir("rust_programs")
600-
.arg("-c")
601-
.arg(format!(
597+
let rust = Command::new("sh")
598+
.current_dir("rust_programs")
599+
.arg("-c")
600+
.arg(format!(
602601
"cargo {toolchain} run --target {target} --bin {intrinsic} --release",
603602
intrinsic = intrinsic.name,
604603
toolchain = toolchain,
605604
target = target
606-
))
607-
.env("RUSTFLAGS", "-Cdebuginfo=0")
608-
.output()
609-
} else {
610-
Command::new("sh")
611-
.arg("-c")
612-
.arg(format!(
613-
"{runner} ./rust_programs/target/{target}/release/{intrinsic}",
614-
runner = runner,
615-
target = target,
616-
intrinsic = intrinsic.name,
617-
))
618-
.output()
619-
};
605+
))
606+
.env("RUSTFLAGS", "-Cdebuginfo=0")
607+
.output();
620608

621609
let (c, rust) = match (c, rust) {
622610
(Ok(c), Ok(rust)) => (c, rust),

0 commit comments

Comments
 (0)