summaryrefslogtreecommitdiffstats
path: root/test/pacman/util.py
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-07-29 21:22:07 +0200
committerAllan McRae <allan@archlinux.org>2013-08-21 03:00:18 +0200
commit1152052b3e27e3252f6685a369fce8a426710015 (patch)
treec7e31e108faa3cf8b464cd04fbe2123abe76b6e8 /test/pacman/util.py
parent429b956fb2d21309cae0560d6d98225969447737 (diff)
downloadpacman-1152052b3e27e3252f6685a369fce8a426710015.tar.gz
pacman-1152052b3e27e3252f6685a369fce8a426710015.tar.xz
convert pactest to TAP output
Each test produces a single TAP result with the rules run in a sub-test. This reduces output when run under automake and makes it possible to continue setting expectfailure at the test level rather than per-rule. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/pacman/util.py')
-rw-r--r--test/pacman/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/pacman/util.py b/test/pacman/util.py
index 65540ed3..14035d76 100644
--- a/test/pacman/util.py
+++ b/test/pacman/util.py
@@ -21,6 +21,8 @@ import os
import re
import hashlib
+import tap
+
SELFPATH = os.path.abspath(os.path.dirname(__file__))
# ALPM
@@ -43,7 +45,7 @@ verbose = 0
def vprint(msg):
if verbose:
- print msg
+ tap.diag(msg)
#
# Methods to generate files