mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibJS: Let run-tests return 1 when not all tests pass
This commit is contained in:
parent
441c2715bb
commit
9722cac9fe
Notes:
sideshowbarker
2024-07-19 07:25:54 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/9722cac9fef Pull-request: https://github.com/SerenityOS/serenity/pull/1895
|
@ -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…
Reference in a new issue