From 41218e307278b205df3989a5d968daa982412138 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 25 May 2014 01:24:49 +0100 Subject: [PATCH] Colorize part of test output --- test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 656e3ac..d7da71f 100755 --- a/test.sh +++ b/test.sh @@ -25,7 +25,8 @@ testfiles="$(find "$testdir" -name "*-test.sh")" RET=0 for testfile in $testfiles; do echo "" - echo "running: ${testfile/#$(dirname "$testdir")\//}" + echo -en "\033[0;35mrunning: " + echo -e "\033[0;36m${testfile/#$(dirname "$testdir")\//}\033[0m" cd "$(dirname "$testfile")" "$testfile" if [ "$?" != "0" ]; then RET=1; fi