1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

tests: allow skipping of tests by using return code 99

This commit is contained in:
Steffen Vogel 2017-06-09 16:08:45 +02:00
parent 59f3e86d21
commit ecc9c3a057

View file

@ -78,13 +78,20 @@ for TEST in ${TESTS}; do
RC=$?
if (( $RC != 0 )); then
echo -e "\e[31m[Fail] \e[39m ${TESTNAME} with code $RC"
NUM_FAIL=$((${NUM_FAIL} + 1))
else
echo -e "\e[32m[Pass] \e[39m ${TESTNAME}"
NUM_PASS=$((${NUM_PASS} + 1))
fi
case $RC in
0)
echo -e "\e[32m[Pass] \e[39m ${TESTNAME}"
NUM_PASS=$((${NUM_PASS} + 1))
;;
99)
echo -e "\e[93m[Skip] \e[39m ${TESTNAME}"
NUM_SKIP=$((${NUM_SKIP} + 1))
;;
*)
echo -e "\e[31m[Fail] \e[39m ${TESTNAME} with code $RC"
NUM_FAIL=$((${NUM_FAIL} + 1))
;;
esac
done
# Show summary