Skip to content

Commit 4d70970

Browse files
committed
print an error when applying the patch failed
1 parent 571a60d commit 4d70970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
# apply our patch
55
rm -rf rust-src-patched
66
cp -a $(rustc --print sysroot)/lib/rustlib/src/rust/ rust-src-patched
7-
( cd rust-src-patched && patch -f -p1 < ../rust-src.diff >/dev/null )
7+
( cd rust-src-patched && patch -f -p1 < ../rust-src.diff >/dev/null ) || ( echo "Applying rust-src.diff failed!" && exit 1 )
88
export MIRI_LIB_SRC=$(pwd)/rust-src-patched/library
99

1010
# run the tests (some also without validation, to exercise those code paths in Miri)

0 commit comments

Comments
 (0)