Skip to content

Commit e5ca864

Browse files
committed
🔧 Display skip tests on gray
1 parent ca91ac5 commit e5ca864

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/run_tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ for FILE in $*; do
7676
TIME=$(xml-printf '%s' $RESULT_XML ://testcase[$i]@time)
7777
NAME=$(xml-printf '%s' $RESULT_XML ://testcase[$i]@name)
7878
FAIL=$(xml-printf '%s' $RESULT_XML ://testcase[$i])
79+
xml-printf '%s' $RESULT_XML ://testcase[$i]/skipped >/dev/null 2>&1
80+
SKIPPED=${PIPESTATUS[0]}
7981

80-
if [ -z "$FAIL" ] && [ $MEM_ERRORS -eq 0 ] && [ $HELGRIND_ERRORS -eq 0 ] && [ $DRD_ERRORS -eq 0 ]; then
82+
if [ "$SKIPPED" -eq 0 ]; then
83+
# Skipped tests
84+
printf "\t\e[90m ○ %s \e[0m(Skiped)\e[0m\n" "$NAME"
85+
elif [ -z "$FAIL" ] && [ $MEM_ERRORS -eq 0 ] && [ $HELGRIND_ERRORS -eq 0 ] && [ $DRD_ERRORS -eq 0 ]; then
8186
# No errors at all
8287
printf "\t\e[32m ✔ %s \e[0m(%sms)\e[0m\n" "$NAME" "$TIME"
8388
((SUCCESSES++))

0 commit comments

Comments
 (0)