diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-10-25 13:37:05 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-10-26 14:14:42 +0100 |
commit | e52aad5208281837f13018363118ff73aaaabf45 (patch) | |
tree | 3e3aaaa33d9b5f5b1bccc3cb20844d962aa73d8e /test/integration/run-tests | |
parent | d8c71b3b5dc98daa247433503ad8242c9e7b77db (diff) |
tests: enhance output of grep and test fails
Git-Dch: Ignore
Diffstat (limited to 'test/integration/run-tests')
-rwxr-xr-x | test/integration/run-tests | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/run-tests b/test/integration/run-tests index c39a2ac68..6c6a37611 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -46,7 +46,11 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do if ! ${testcase}; then FAIL=$((FAIL+1)) FAILED_TESTS="$FAILED_TESTS $(basename $testcase)" - echo >&2 "$(basename $testcase) ... FAIL" + if [ "$MSGLEVEL" -le 2 ]; then + printf >&2 "\n${CHIGH}Running $(basename $testcase) -> FAILED${CRESET}" + else + echo >&2 "${CHIGH}Running $(basename $testcase) -> FAILED${CRESET}" + fi else PASS=$((PASS+1)) fi |