File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 4949from Queue import Queue , Empty
5050
5151logger = logging .getLogger ('testrunner' )
52+ is_skipped = re .compile (r"# SKIP\S+ (.+)" , re .IGNORECASE )
5253
5354VERBOSE = False
5455
@@ -256,8 +257,7 @@ def HasRun(self, output):
256257 for l in output .output .stdout .splitlines ():
257258 logger .info ('#' + l )
258259 elif output .HasSkipped ():
259- skip = re .findall ('# SKIP\S+ (.+)' , output .output .stdout ,
260- re .IGNORECASE )
260+ skip = is_skipped .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,8 +476,7 @@ def UnexpectedOutput(self):
476476 return not outcome in self .test .outcomes
477477
478478 def HasSkipped (self ):
479- skip = re .search ('# SKIP\S+ (.+)' , self .output .stdout ,
480- re .IGNORECASE )
479+ skip = is_skipped .search (self .output .stdout )
481480 return self .store_unexpected_output and skip
482481
483482 def HasPreciousOutput (self ):
You can’t perform that action at this time.
0 commit comments