Skip to content

Commit 4d6b0b5

Browse files
committed
fix: use 'official' regex and rename var
1 parent 3014572 commit 4d6b0b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
from Queue import Queue, Empty
5050

5151
logger = logging.getLogger('testrunner')
52-
is_skipped = re.compile(r"# SKIP\S+ (.+)", re.IGNORECASE)
52+
skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE)
5353

5454
VERBOSE = False
5555

@@ -257,7 +257,7 @@ def HasRun(self, output):
257257
for l in output.output.stdout.splitlines():
258258
logger.info('#' + l)
259259
elif output.HasSkipped():
260-
skip = is_skipped.findall(output.output.stdout)
260+
skip = skip_regex.findall(output.output.stdout)
261261
logger.info('ok %i - %s # skip %s' % (self._done, command, skip[0]))
262262
else:
263263
logger.info('ok %i - %s' % (self._done, command))
@@ -476,7 +476,7 @@ def UnexpectedOutput(self):
476476
return not outcome in self.test.outcomes
477477

478478
def HasSkipped(self):
479-
skip = is_skipped.search(self.output.stdout)
479+
skip = skip_regex.search(self.output.stdout)
480480
return self.store_unexpected_output and skip
481481

482482
def HasPreciousOutput(self):

0 commit comments

Comments
 (0)