[PATCH] fwts-test: arg-help-0001: reset tty width to original setting

Colin King colin.king at canonical.com
Thu Jul 4 13:48:53 UTC 2019


From: Colin Ian King <colin.king at canonical.com>

Replace the hard-coded tty width with the original setting.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 fwts-test/arg-help-0001/test-0001.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fwts-test/arg-help-0001/test-0001.sh b/fwts-test/arg-help-0001/test-0001.sh
index 93b040aa..43e00131 100755
--- a/fwts-test/arg-help-0001/test-0001.sh
+++ b/fwts-test/arg-help-0001/test-0001.sh
@@ -33,7 +33,7 @@ if [ $ret -eq 0 ]; then
 else
 	echo FAILED: $TEST, $NAME
 fi
-stty cols 80 2> /dev/null
+stty cols $cols 2> /dev/null
 tset 2> /dev/null
 
 rm $TMPLOG ${TMPLOG}.orig
-- 
2.20.1




More information about the fwts-devel mailing list