Colorize part of test output

This commit is contained in:
2014-05-25 01:24:49 +01:00
parent 5602bf650e
commit 41218e3072

View File

@@ -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