Cosmetic autotest improvement

This commit is contained in:
Jérôme Petazzoni
2017-10-25 22:39:07 +02:00
parent 603bda8166
commit 681754fc1b

View File

@@ -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.