summaryrefslogtreecommitdiffstats
path: root/test/pacman/pmdb.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/pmdb.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/pmdb.py')
-rw-r--r--test/pacman/pmdb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py
index 3e9d305e..b7b3522a 100644
--- a/test/pacman/pmdb.py
+++ b/test/pacman/pmdb.py
@@ -23,6 +23,7 @@ from StringIO import StringIO
import tarfile
import pmpkg
+import tap
import util
def _getsection(fd):
@@ -105,7 +106,7 @@ class pmdb(object):
# desc
filename = os.path.join(path, "desc")
if not os.path.isfile(filename):
- print "invalid db entry found (desc missing) for pkg", pkgname
+ tap.bail("invalid db entry found (desc missing) for pkg " + pkgname)
return None
fd = open(filename, "r")
while 1:
@@ -160,7 +161,7 @@ class pmdb(object):
# files
filename = os.path.join(path, "files")
if not os.path.isfile(filename):
- print "invalid db entry found (files missing) for pkg", pkgname
+ tap.bail("invalid db entry found (files missing) for pkg " + pkgname)
return None
fd = open(filename, "r")
while 1: