catch hyperfine command failed

This commit is contained in:
Jason Nochlin 2024-01-10 07:48:02 -07:00 committed by Gunnar Morling
parent a08cd0e05a
commit a8ebaf1a59

View File

@ -153,6 +153,11 @@ for fork in "$@"; do
else else
hyperfine $HYPERFINE_OPTS "./calculate_average_$fork.sh 2>&1" hyperfine $HYPERFINE_OPTS "./calculate_average_$fork.sh 2>&1"
fi fi
# Catch hyperfine command failed
if [ $? -ne 0 ]; then
failed+=("$fork")
echo ""
fi
# Verify output # Verify output
diff <(grep Hamburg $fork-$filetimestamp.out) <(grep Hamburg out_expected.txt) > /dev/null diff <(grep Hamburg $fork-$filetimestamp.out) <(grep Hamburg out_expected.txt) > /dev/null