diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2010-04-12 05:59:55 +0200 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2010-04-12 05:59:55 +0200 |
| commit | a79b242552135a23468804569a992c57a4cf08eb (patch) | |
| tree | a0d22c8aa50226cf77c78b87643ed0b9aa80bb0d /python/subunit/__init__.py | |
| parent | 9ed8921b5661b1495fe21c3e5e4642db0debc7db (diff) | |
| parent | 81bb8780381a5c66ebbba28b1b7cdca4e0556f45 (diff) | |
| download | subunit-a79b242552135a23468804569a992c57a4cf08eb.tar.gz | |
Merge support for handling lowercase skip/todo in tap2subunit.
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 6b65ae4..4b25ca3 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -913,7 +913,7 @@ def TAP2SubUnit(tap, subunit): subunit.write("]\n") continue # not a plan line, or have seen one before - match = re.match("(ok|not ok)(?:\s+(\d+)?)?(?:\s+([^#]*[^#\s]+)\s*)?(?:\s+#\s+(TODO|SKIP)(?:\s+(.*))?)?\n", line) + match = re.match("(ok|not ok)(?:\s+(\d+)?)?(?:\s+([^#]*[^#\s]+)\s*)?(?:\s+#\s+(TODO|SKIP|skip|todo)(?:\s+(.*))?)?\n", line) if match: # new test, emit current one. _emit_test() @@ -927,9 +927,9 @@ def TAP2SubUnit(tap, subunit): else: description = ' ' + description if directive is not None: - if directive == 'TODO': + if directive.upper() == 'TODO': result = 'xfail' - elif directive == 'SKIP': + elif directive.upper() == 'SKIP': result = 'skip' if directive_comment is not None: log.append(directive_comment) |
