From e9eefeed51548ce202c21eebbfde2748ba03265d Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Sat, 30 Dec 2023 21:53:33 +0000 Subject: [PATCH] Use $CARGO instead of cargo in test scripts --- test_crates/catch_std_exception/check.sh | 2 +- test_crates/std_catch_exception/check.sh | 2 +- test_crates/throw_and_catch/check.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_crates/catch_std_exception/check.sh b/test_crates/catch_std_exception/check.sh index 455444b..9268c8a 100755 --- a/test_crates/catch_std_exception/check.sh +++ b/test_crates/catch_std_exception/check.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail trap "rm -f run.log" EXIT -cargo run --release $BUILD_STD 2>&1 | tee run.log +${CARGO:-cargo} run --release $BUILD_STD 2>&1 | tee run.log if [ $? -ne 134 ]; then echo process is not aborted exit 1 diff --git a/test_crates/std_catch_exception/check.sh b/test_crates/std_catch_exception/check.sh index 408153a..e6f54a9 100755 --- a/test_crates/std_catch_exception/check.sh +++ b/test_crates/std_catch_exception/check.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail trap "rm -f run.log" EXIT -cargo run --release $BUILD_STD 2>&1 | tee run.log +${CARGO:-cargo} run --release $BUILD_STD 2>&1 | tee run.log if [ $? -ne 134 ]; then echo process is not aborted exit 1 diff --git a/test_crates/throw_and_catch/check.sh b/test_crates/throw_and_catch/check.sh index 17e13fa..252e9d9 100755 --- a/test_crates/throw_and_catch/check.sh +++ b/test_crates/throw_and_catch/check.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail trap "rm -f run.log" EXIT -cargo run --release $BUILD_STD 2>&1 | tee run.log +${CARGO:-cargo} run --release $BUILD_STD 2>&1 | tee run.log if [ $? -ne 134 ]; then echo process is not aborted exit 1