X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Fits-all;h=b5f3323619c92d6a15597bb696b25e2d2658ac38;hb=c8c34cdd43d3603f3b64a56841b4425379c98f45;hp=c0c57046543289c6810d49815ed277c5190bce5f;hpb=ed05c70208eaa48b65571e58ce4af559a0c51bd5;p=openldap
diff --git a/tests/scripts/its-all b/tests/scripts/its-all
index c0c5704654..b5f3323619 100755
--- a/tests/scripts/its-all
+++ b/tests/scripts/its-all
@@ -2,7 +2,7 @@
# $OpenLDAP$
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2005 The OpenLDAP Foundation.
+## Copyright 1998-2011 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -14,9 +14,12 @@
## .
SHTOOL="$SRCDIR/../build/shtool"
-TB=`$SHTOOL echo -e "%B"`
-TN=`$SHTOOL echo -e "%b"`
-SLEEPTIME=10
+
+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 "### ###"
@@ -45,7 +48,5 @@ for CMD in $SRCDIR/data/regressions/its*/its*; do
exit $RC
fi
- echo ">>>>> waiting $SLEEPTIME seconds for things to exit"
- sleep $SLEEPTIME
echo ""
done