mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 11:55:12 -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:
parent
e03fa67445
commit
e0607f6ae2
@ -19,7 +19,7 @@ level = 0
|
|||||||
failed = 0
|
failed = 0
|
||||||
|
|
||||||
def _output(msg):
|
def _output(msg):
|
||||||
print("%s%s" % (" "*level, msg))
|
print("%s%s" % (" "*level, str(msg).replace("\n", "\\n")))
|
||||||
|
|
||||||
def ok(ok, description=""):
|
def ok(ok, description=""):
|
||||||
global count, failed
|
global count, failed
|
||||||
|
Loading…
Reference in New Issue
Block a user