Skip to content

Commit c907a32

Browse files
committed
ci: Use lowercase for bash locals, fix shellcheck
1 parent d045d74 commit c907a32

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ci/miri.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#!/bin/bash
2-
set -ex
2+
set -eux
33

44
# We need Tree Borrows as some of our raw pointer patterns are not
55
# compatible with Stacked Borrows.
66
export MIRIFLAGS="-Zmiri-tree-borrows"
77

88
# One target that sets `mem-unaligned` and one that does not,
99
# and a big-endian target.
10-
TARGETS=(x86_64-unknown-linux-gnu
10+
targets=(
11+
x86_64-unknown-linux-gnu
1112
armv7-unknown-linux-gnueabihf
12-
s390x-unknown-linux-gnu)
13-
for TARGET in "${TARGETS[@]}"; do
13+
s390x-unknown-linux-gnu
14+
)
15+
for target in "${targets[@]}"; do
1416
# Only run the `mem` tests to avoid this taking too long.
15-
cargo miri test --manifest-path builtins-test/Cargo.toml --features no-asm --target $TARGET -- mem
17+
cargo miri test --manifest-path builtins-test/Cargo.toml --features no-asm --target "$target" -- mem
1618
done

0 commit comments

Comments
 (0)