summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@src.gnome.org>2018-03-05 14:41:30 +0100
committerDaiki Ueno <dueno@src.gnome.org>2018-03-05 14:42:58 +0100
commit7120f44ceedd5c10802781d64a5829b3c6d8e13f (patch)
treebd26301f795a198b50d03be91feed34d16c0b67a /build
parentbe97b6cc709de49f6a81dbdd27e9aeba6860d670 (diff)
downloadgnome-keyring-7120f44ceedd5c10802781d64a5829b3c6d8e13f.tar.gz
build: Fix tap-driver to parse TAP directive
Diffstat (limited to 'build')
-rwxr-xr-xbuild/tap-driver7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/tap-driver b/build/tap-driver
index 12054255..e0490ae6 100755
--- a/build/tap-driver
+++ b/build/tap-driver
@@ -162,8 +162,11 @@ class TapDriver(Driver):
return
description = description.lstrip()
- # Special case if description starts with this, then skip
- if description.lower().startswith("# skip"):
+ # Parse out a directive from description, if any
+ (description, unused, directive) = description.partition("#")
+
+ # Special case if directive starts with this, then skip
+ if directive.lstrip().lower().startswith("skip"):
self.result_skip(num, description)
elif ok:
self.result_pass(num, description)