From a8ebaf1a59a7cd45a785e66d6b61c8519368ba63 Mon Sep 17 00:00:00 2001 From: Jason Nochlin Date: Wed, 10 Jan 2024 07:48:02 -0700 Subject: catch hyperfine command failed --- evaluate2.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'evaluate2.sh') diff --git a/evaluate2.sh b/evaluate2.sh index 84c8e52..b862bd5 100755 --- a/evaluate2.sh +++ b/evaluate2.sh @@ -153,6 +153,11 @@ for fork in "$@"; do else hyperfine $HYPERFINE_OPTS "./calculate_average_$fork.sh 2>&1" fi + # Catch hyperfine command failed + if [ $? -ne 0 ]; then + failed+=("$fork") + echo "" + fi # Verify output diff <(grep Hamburg $fork-$filetimestamp.out) <(grep Hamburg out_expected.txt) > /dev/null -- cgit v1.2.3