projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enhance apt-key debugging options
[apt.git]
/
test
/
integration
/
run-tests
diff --git
a/test/integration/run-tests
b/test/integration/run-tests
index 9dd550aa253194bc81b1ce90cdd9e5a6204c82cf..6c6a376116f88f9838727183f29e13ed332dcf57 100755
(executable)
--- a/
test/integration/run-tests
+++ b/
test/integration/run-tests
@@
-22,7
+22,7
@@
done
export MSGLEVEL="${MSGLEVEL:-3}"
if [ "$MSGCOLOR" != 'NO' ]; then
export MSGLEVEL="${MSGLEVEL:-3}"
if [ "$MSGCOLOR" != 'NO' ]; then
- if
! expr match "$(readlink -f /proc/$$/fd/1)" '/dev/pts/[0-9]\+' > /dev/null; then
+ if
[ ! -t 1 ]; then # but check that we output to a terminal
export MSGCOLOR='NO'
fi
fi
export MSGCOLOR='NO'
fi
fi
@@
-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)"
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
else
PASS=$((PASS+1))
fi