From 2e4b137ccad2d4d0b4c449d4d276e218292ed4ee Mon Sep 17 00:00:00 2001
From: Fabrice Le Goff <fabrice.le.goff@cern.ch>
Date: Tue, 14 Nov 2023 14:29:45 +0100
Subject: [PATCH] fixed: output of test.test.bash in gitlab CI

---
 DeploymentTest/tbed.test.bash | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/DeploymentTest/tbed.test.bash b/DeploymentTest/tbed.test.bash
index 25c3d58..e086ea4 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
-- 
GitLab