1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

tap.py: replace newlines with escape sequence

Newlines clutter tap output and can potentially confuse TAP parsers.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2015-11-11 19:19:58 -05:00 committed by Allan McRae
parent e03fa67445
commit e0607f6ae2

View File

@ -19,7 +19,7 @@ level = 0
failed = 0
def _output(msg):
print("%s%s" % (" "*level, msg))
print("%s%s" % (" "*level, str(msg).replace("\n", "\\n")))
def ok(ok, description=""):
global count, failed