summaryrefslogtreecommitdiff
path: root/test/pacman
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-11-11 19:19:58 -0500
committerAllan McRae <allan@archlinux.org>2015-11-28 16:23:56 +1000
commite0607f6ae28e85ab905cd10536055ff5b6cc4652 (patch)
tree7938c49e453b57d1ab27bcc9acba2261a0a5ea77 /test/pacman
parente03fa67445f9d7bd6a45c0f4094b08d46496008b (diff)
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>
Diffstat (limited to 'test/pacman')
-rw-r--r--test/pacman/tap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pacman/tap.py b/test/pacman/tap.py
index 520f1e3c..a91071bd 100644
--- a/test/pacman/tap.py
+++ b/test/pacman/tap.py
@@ -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