Added color to test-all.
This commit is contained in:
parent
175fac735c
commit
d3078a77c7
1 changed files with 3 additions and 0 deletions
3
test-all
3
test-all
|
|
@ -10,8 +10,11 @@ for test in ${CODEBASE_PATH}/*_test.py; do
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
if [ $FAILURE -eq 0 ]; then
|
if [ $FAILURE -eq 0 ]; then
|
||||||
|
echo -e "\e[32m" # Green
|
||||||
echo "Tests passed."
|
echo "Tests passed."
|
||||||
else
|
else
|
||||||
|
echo -e "\e[91m" # Red
|
||||||
echo "Tests failed."
|
echo "Tests failed."
|
||||||
fi
|
fi
|
||||||
|
echo -e "\e[39m" # Normal
|
||||||
exit $FAILURE
|
exit $FAILURE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue