From e5d06ebfb1850105b52933b3ad28105747b0edac Mon Sep 17 00:00:00 2001 From: zzy <2450266535@qq.com> Date: Mon, 14 Apr 2025 19:44:54 +0800 Subject: [PATCH] using \n to fix \r\n --- src/main/test-mr-many.sh | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/main/test-mr-many.sh b/src/main/test-mr-many.sh index 9f2c887..c31155d 100644 --- a/src/main/test-mr-many.sh +++ b/src/main/test-mr-many.sh @@ -1,23 +1,23 @@ -#!/usr/bin/env bash - -if [ $# -ne 1 ]; then - echo "Usage: $0 numTrials" - exit 1 -fi - -trap 'kill -INT -$pid; exit 1' INT - -# Note: because the socketID is based on the current userID, -# ./test-mr.sh cannot be run in parallel -runs=$1 -chmod +x test-mr.sh - -for i in $(seq 1 $runs); do - timeout -k 2s 900s ./test-mr.sh & - pid=$! - if ! wait $pid; then - echo '***' FAILED TESTS IN TRIAL $i - exit 1 - fi -done -echo '***' PASSED ALL $i TESTING TRIALS +#!/usr/bin/env bash + +if [ $# -ne 1 ]; then + echo "Usage: $0 numTrials" + exit 1 +fi + +trap 'kill -INT -$pid; exit 1' INT + +# Note: because the socketID is based on the current userID, +# ./test-mr.sh cannot be run in parallel +runs=$1 +chmod +x test-mr.sh + +for i in $(seq 1 $runs); do + timeout -k 2s 900s ./test-mr.sh & + pid=$! + if ! wait $pid; then + echo '***' FAILED TESTS IN TRIAL $i + exit 1 + fi +done +echo '***' PASSED ALL $i TESTING TRIALS