diff options
author | Daiki Ueno <dueno@src.gnome.org> | 2018-03-05 14:41:30 +0100 |
---|---|---|
committer | Daiki Ueno <dueno@src.gnome.org> | 2018-03-05 14:42:58 +0100 |
commit | 7120f44ceedd5c10802781d64a5829b3c6d8e13f (patch) | |
tree | bd26301f795a198b50d03be91feed34d16c0b67a | |
parent | be97b6cc709de49f6a81dbdd27e9aeba6860d670 (diff) | |
download | gnome-keyring-7120f44ceedd5c10802781d64a5829b3c6d8e13f.tar.gz |
build: Fix tap-driver to parse TAP directive
-rwxr-xr-x | build/tap-driver | 7 |
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) |