]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/its-all
ITS#6406: Return failure instead of $? when a program unexpectedly succeeded
[openldap] / tests / scripts / its-all
index 972a2b7639e5d8d59ae2a8d7f368ba84273afae5..baebf8e6340962b0d616a64e6b7c0330eb73391e 100755 (executable)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2006 The OpenLDAP Foundation.
+## Copyright 1998-2009 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
 ## <http://www.OpenLDAP.org/license.html>.
 
 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 $SLEEPTIME seconds for things to exit"
        echo ""
 done