tools: expose skip output to test runner
In the TAP protocol, skips are flagged as ok. Expose more information so we can understand if the test was skipped or not. PR-URL: https://github.com/nodejs/io.js/pull/2130 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
24dd016deb
commit
3cbb5870e5
@ -49,6 +49,7 @@ from datetime import datetime
|
|||||||
from Queue import Queue, Empty
|
from Queue import Queue, Empty
|
||||||
|
|
||||||
logger = logging.getLogger('testrunner')
|
logger = logging.getLogger('testrunner')
|
||||||
|
skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE)
|
||||||
|
|
||||||
VERBOSE = False
|
VERBOSE = False
|
||||||
|
|
||||||
@ -255,6 +256,11 @@ class TapProgressIndicator(SimpleProgressIndicator):
|
|||||||
logger.info('#' + l)
|
logger.info('#' + l)
|
||||||
for l in output.output.stdout.splitlines():
|
for l in output.output.stdout.splitlines():
|
||||||
logger.info('#' + l)
|
logger.info('#' + l)
|
||||||
|
else:
|
||||||
|
skip = skip_regex.search(output.output.stdout)
|
||||||
|
if skip:
|
||||||
|
logger.info(
|
||||||
|
'ok %i - %s # skip %s' % (self._done, command, skip.group(1)))
|
||||||
else:
|
else:
|
||||||
logger.info('ok %i - %s' % (self._done, command))
|
logger.info('ok %i - %s' % (self._done, command))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user