diff mbox series

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

Message ID 20190704134853.15967-1-colin.king@canonical.com
State Accepted
Headers show
Series fwts-test: arg-help-0001: reset tty width to original setting | expand

Commit Message

Colin Ian King July 4, 2019, 1:48 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

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

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

Comments

Alex Hung July 4, 2019, 3:48 p.m. UTC | #1
On 2019-07-04 7:48 a.m., Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Replace the hard-coded tty width with the original setting.
> 
> Signed-off-by: Colin Ian King <colin.king@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
> 


Acked-by: Alex Hung <alex.hung@canonical.com>
Ivan Hu July 24, 2019, 6:25 a.m. UTC | #2
On 7/4/19 9:48 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Replace the hard-coded tty width with the original setting.
> 
> Signed-off-by: Colin Ian King <colin.king@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
> 

Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff mbox series

Patch

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