From 68c014c1ac2bce58bd9a23a08a388b3c4280b96d Mon Sep 17 00:00:00 2001
From: Fabrice Le Goff <fabrice.le.goff@cern.ch>
Date: Tue, 26 Sep 2023 16:08:01 +0200
Subject: [PATCH] fixing tbed test for 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 6c84184..b1f79c3 100755
--- a/DeploymentTest/tbed.test.bash
+++ b/DeploymentTest/tbed.test.bash
@@ -83,7 +83,7 @@ else
 fi
 
 LISTING_OUTPUT=`eval $LISTING_COMMAND`
-if [ x$TERM != x ]; then
+if [ x$TERM == x ]; 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
@@ -96,13 +96,13 @@ while [ "x$LISTING_OUTPUT" != x ]; do
     echo "timeout"
     exit 4
   fi
-  if [ x$TERM != x ]; then
+  if [ x$TERM == x ]; then
     echo "$LISTING_OUTPUT"
   fi
 
   sleep 1
 
-  if [ x$TERM != x ]; then
+  if [ x$TERM == x ]; then
     for i in `seq 0 $NL`; do tput cuu1; done
     NCOLS=`tput cols`
     for i in `seq 0 $NL`; do
-- 
GitLab