From 681754fc1b0dd1fb1d5c2c74799b709363b484c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Wed, 25 Oct 2017 22:39:07 +0200 Subject: [PATCH] Cosmetic autotest improvement --- autotest/autotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotest/autotest.py b/autotest/autotest.py index de9d237b..a6cf7e6a 100755 --- a/autotest/autotest.py +++ b/autotest/autotest.py @@ -9,7 +9,7 @@ import sys logging.basicConfig(level=logging.DEBUG) def hrule(): - return "="*int(os.environ.get("COLUMNS", "80")) + return "="*int(subprocess.check_output(["tput", "cols"])) # A "snippet" is something that the user is supposed to do in the workshop. # Most of the "snippets" are shell commands.