From 9fd99cd566020ce7d796a012f9727d875f16e479 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 19 May 2007 21:26:54 +0000 Subject: [PATCH] Only use terminal escapes (in $TB/$TN) when printing to a terminal. Remove a bogus 'waiting' message; the script does not sleep there. --- tests/scripts/its-all | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/scripts/its-all b/tests/scripts/its-all index da140b3097..11620ae322 100755 --- a/tests/scripts/its-all +++ b/tests/scripts/its-all @@ -14,8 +14,12 @@ ## . SHTOOL="$SRCDIR/../build/shtool" -TB=`$SHTOOL echo -e "%B"` -TN=`$SHTOOL echo -e "%b"` + +TB="" TN="" +if test -t 1 ; then + TB=`$SHTOOL echo -e "%B" 2>/dev/null` + TN=`$SHTOOL echo -e "%b" 2>/dev/null` +fi echo "#######################################################################" echo "### ###" @@ -44,6 +48,5 @@ for CMD in $SRCDIR/data/regressions/its*/its*; do exit $RC fi - echo ">>>>> waiting for things to exit" echo "" done -- 2.39.5