summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2018-12-23 07:24:40 +0100
committerAllan McRae <allan@archlinux.org>2019-01-04 02:10:37 +0100
commitecac357c1a20f3e09ae979397e5efd225b03f895 (patch)
treef9a1f495cd685168af12677d9b08736ad4c0885c
parentd150b9719000ccafb39e8560120bb4f690ba8b50 (diff)
downloadpacman-ecac357c1a20f3e09ae979397e5efd225b03f895.tar.gz
pacman-ecac357c1a20f3e09ae979397e5efd225b03f895.tar.xz
tap.py: add skip_all function
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--test/pacman/tap.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pacman/tap.py b/test/pacman/tap.py
index 6a3bee0d..eb0747be 100644
--- a/test/pacman/tap.py
+++ b/test/pacman/tap.py
@@ -21,6 +21,11 @@ failed = 0
def _output(msg):
print("%s%s" % (" "*level, str(msg).replace("\n", "\\n")))
+def skip_all(description=""):
+ if description:
+ description = " # " + description
+ _output("1..0%s" % (description))
+
def ok(ok, description=""):
global count, failed
count += 1