summaryrefslogtreecommitdiffstats
path: root/test/pacman/tap.py
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2019-06-28 12:43:32 +0200
committerAllan McRae <allan@archlinux.org>2019-08-12 02:03:17 +0200
commit18a64400617259b34ccf014682fd8022d551a036 (patch)
tree45a657e42cd66c31b01836040e603f55ef533a85 /test/pacman/tap.py
parent75837a2717c3b5654149393d6ec0e0977a7ddc2f (diff)
downloadpacman-18a64400617259b34ccf014682fd8022d551a036.tar.gz
pacman-18a64400617259b34ccf014682fd8022d551a036.tar.xz
meson: remove tap-driver.py, use meson's TAP protocol
This includes a patch from Andrew to fix pactest's TAP output for subtests. Original TAP support in meson was added in 0.50, but 0.51 contains a bugfix that ensures the test still work with the --verbose flag passed to meson test, so let's depend on that.
Diffstat (limited to 'test/pacman/tap.py')
-rw-r--r--test/pacman/tap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pacman/tap.py b/test/pacman/tap.py
index eb0747be..8a32b3ac 100644
--- a/test/pacman/tap.py
+++ b/test/pacman/tap.py
@@ -19,7 +19,8 @@ level = 0
failed = 0
def _output(msg):
- print("%s%s" % (" "*level, str(msg).replace("\n", "\\n")))
+ leader = "#" if level > 0 else ""
+ print("%s%s%s" % (leader, " "*level, str(msg).replace("\n", "\\n")))
def skip_all(description=""):
if description: