Commit 7120f44c authored by Daiki Ueno's avatar Daiki Ueno

build: Fix tap-driver to parse TAP directive

parent be97b6cc
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment