Skip to content

Commit f5f3410

Browse files
committed
fix output colorization
1 parent c3ce995 commit f5f3410

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unittests/run_scripts_quiet.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ for f in `find $INPPATH/practice_scripts -name "*.inp"` ; do
3131
# Check if the script failed
3232
if [ $? != 0 ] ; then
3333
# Print 'Failed', update status variable, and log the failed script
34-
echo " [\e[0;31mFailed\e[0m]"
34+
echo -e " [\e[0;31mFailed\e[0m]"
3535
my_status=1
3636
echo $f >> $HERE/fails
3737
else
@@ -61,8 +61,10 @@ done
6161

6262
# If there were any failures, print the names of the failed scripts
6363
if test -f fails ; then
64-
echo "Failed script(s):"
64+
echo -e "\e[0;31mFailed script(s):\e[0m"
6565
cat fails
66+
else
67+
echo "No errors were found"
6668
fi
6769

6870
# Exit with status code 0 if all scripts passed, 1 if any script failed.

0 commit comments

Comments
 (0)