From 1152052b3e27e3252f6685a369fce8a426710015 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 29 Jul 2013 15:22:07 -0400 Subject: 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 Signed-off-by: Allan McRae --- test/pacman/pactest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/pacman/pactest.py') 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 tempfile import pmenv +import tap import util __author__ = "Aurelien FORET" @@ -110,7 +111,7 @@ def create_parser(): 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 @@ def create_parser(): 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) -- cgit v1.2.3-54-g00ecf