[gnome-keyring] build: Fix tap-driver to parse TAP directive



commit 7120f44ceedd5c10802781d64a5829b3c6d8e13f
Author: Daiki Ueno <dueno src gnome org>
Date:   Mon Mar 5 14:41:30 2018 +0100

    build: Fix tap-driver to parse TAP directive

 build/tap-driver |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/build/tap-driver b/build/tap-driver
index 1205425..e0490ae 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]