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:
parent
59f3e86d21
commit
ecc9c3a057
1 changed files with 14 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue