diff --git a/DeploymentTest/tbed.test.bash b/DeploymentTest/tbed.test.bash
index 25c3d5852754d0b6a44dafb48b84fca0be9b30cd..e086ea45df178d70ce3a73495a3e7f2a102d507a 100755
--- a/DeploymentTest/tbed.test.bash
+++ b/DeploymentTest/tbed.test.bash
@@ -85,7 +85,7 @@ fi
 echo "TERM=$TERM"
 
 LISTING_OUTPUT=`eval $LISTING_COMMAND`
-if [ x$TERM != x ]; then
+if [ x$TERM != xdumb ]; then
   NL=`echo "$LISTING_OUTPUT" | wc -l`
   for i in `seq 0 $NL`; do echo; done
   for i in `seq 0 $NL`; do tput cuu1; done
@@ -98,13 +98,13 @@ while [ "x$LISTING_OUTPUT" != x ]; do
     echo "timeout"
     exit 4
   fi
-  if [ x$TERM != x ]; then
+  if [ x$TERM != xdumb ]; then
     echo "$LISTING_OUTPUT"
   fi
 
   sleep 1
 
-  if [ x$TERM != x ]; then
+  if [ x$TERM != xdumb ]; then
     for i in `seq 0 $NL`; do tput cuu1; done
     NCOLS=`tput cols`
     for i in `seq 0 $NL`; do