summaryrefslogtreecommitdiffstats
path: root/test/pacman/pactest.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/pactest.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/pactest.py')
-rwxr-xr-xtest/pacman/pactest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pacman/pactest.py b/test/pacman/pactest.py
index 2b1dee63..fe04c2b3 100755
--- a/test/pacman/pactest.py
+++ b/test/pacman/pactest.py
@@ -26,6 +26,7 @@ import sys
import tempfile
import pmenv
+import tap
import util
__author__ = "Aurelien FORET"
@@ -110,7 +111,7 @@ if __name__ == "__main__":
env.pacman["ldconfig"] = opts.ldconfig
if opts.testcases is None or len(opts.testcases) == 0:
- print "no tests defined, nothing to do"
+ tap.bail("no tests defined, nothing to do")
os.rmdir(root_path)
sys.exit(2)
@@ -124,7 +125,7 @@ if __name__ == "__main__":
if not opts.keeproot:
shutil.rmtree(root_path)
else:
- print "pacman testing root saved: %s" % root_path
+ tap.diag("pacman testing root saved: %s" % root_path)
if env.failed > 0:
sys.exit(1)