From 90fe4c9f8e923204744b00f0d5a40121bdeccbf2 Mon Sep 17 00:00:00 2001 From: bog Date: Mon, 11 Dec 2023 21:16:30 +0100 Subject: [PATCH] :white_check_mark: update test script. --- tests/acceptances/run.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/acceptances/run.sh b/tests/acceptances/run.sh index 077c1f8..3f1487e 100755 --- a/tests/acceptances/run.sh +++ b/tests/acceptances/run.sh @@ -14,8 +14,6 @@ do TRACE="$(roza $file 2>&1)" RES=$? - # echo -en "\e[33m$file\e[0m ... " - if [ $RES -ne 0 ] then echo @@ -32,14 +30,7 @@ do TOTAL=$(($TOTAL + 1)) done -echo - -if [ $PASSED -eq $TOTAL ] -then - echo -e "\e[32m$H All tests passed $H\e[0m" -else - echo -e "\e[31m$H Some tests failed $H\e[0m" -fi +echo -e "\e[33m$H SUMMARY $H\e[0m" echo "PASSED: $PASSED" for ok in $PASSED_LST @@ -57,3 +48,10 @@ done echo echo "TOTAL: $TOTAL" + +if [ $PASSED -eq $TOTAL ] +then + echo -e "\e[32m$H All tests passed $H\e[0m" +else + echo -e "\e[31m$H Some tests failed $H\e[0m" +fi