Skip to content

Commit 35e5396

Browse files
Make crash tests work with the latest version of rustc
1 parent e8af24b commit 35e5396

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crash-tests/linux/run-test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ initramfs_build_dir=$build_dir/rootfs
2323
initramfs=$build_dir/rootfs.img
2424
testfs=$build_dir/testfs.img
2525
output=$build_dir/output.txt
26-
test_bin=$build_dir/cargo/release/atomic-write-file-test
26+
target=$(uname -m)-unknown-linux-gnu
27+
test_bin=$build_dir/cargo/$target/release/atomic-write-file-test
2728

2829
options=$(getopt --name "$0" --options k:m:f:F: --long kernel:,modules:,filesystem-type:,cargo-features: -- "$@")
2930

@@ -69,7 +70,7 @@ cd "$(dirname "$(readlink -f "$0")")"
6970
#
7071

7172
echo "${status}Compiling${reset} static binary at $test_bin"
72-
RUSTFLAGS='-C target-feature=+crt-static' CARGO_TARGET_DIR=$build_dir/cargo cargo build --release --features "$cargo_features"
73+
RUSTFLAGS='-C target-feature=+crt-static' CARGO_TARGET_DIR=$build_dir/cargo cargo build --release --features "$cargo_features" --target "$target"
7374

7475
#
7576
# Create the root filesystem and put it into an initramfs

0 commit comments

Comments
 (0)