From cc5f87c90cfe0dfac1db90bd827f9b3f492a1684 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 24 May 2021 16:50:56 -0400 Subject: [PATCH] chore: small fivebyeight cleanup --- runtime/experiments/applications/ocr/fivebyeight/run.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/experiments/applications/ocr/fivebyeight/run.sh b/runtime/experiments/applications/ocr/fivebyeight/run.sh index 4d2fa18..415d213 100755 --- a/runtime/experiments/applications/ocr/fivebyeight/run.sh +++ b/runtime/experiments/applications/ocr/fivebyeight/run.sh @@ -26,8 +26,6 @@ experiment_main() { local -r hostname="$1" local -r results_directory="$2" - sleep 2 - validate_dependencies local -r expected_result="$(cat ./expected_result.txt)" @@ -35,10 +33,11 @@ experiment_main() { local -i success_count=0 local -ir total_count=10 + local result for ((i = 0; i < total_count; i++)); do result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@5x8.pnm" "$hostname:10000" 2> /dev/null) if [[ "$result" == "$expected_result" ]]; then - success_count=$((success_count + 1)) + ((success_count++)) else { echo "FAIL"