mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibJS: Let run-tests return 1 when not all tests pass
This commit is contained in:
parent
441c2715bb
commit
9722cac9fe
1 changed files with 5 additions and 0 deletions
|
@ -33,13 +33,18 @@ pass_color=""
|
|||
fail_color=""
|
||||
color_off="\033[0m"
|
||||
|
||||
exit_code=0
|
||||
|
||||
if [ $pass_count -gt 0 ]; then
|
||||
pass_color="\033[32;1m"
|
||||
fi
|
||||
|
||||
if [ $fail_count -gt 0 ]; then
|
||||
fail_color="\033[31;1m"
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -e "Ran $count tests. Passed: ${pass_color}${pass_count}${color_off}, Failed: ${fail_color}${fail_count}${color_off}"
|
||||
|
||||
exit $exit_code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue