Bug 1050511 - Log skipped tests in a marionette run only after logging suite_start.;r=jgraham

This commit is contained in:
Chris Manchester 2014-08-08 12:02:39 +01:00
parent 63a86a5836
commit cfb4cb5bd8

View File

@ -656,6 +656,14 @@ class BaseMarionetteTestRunner(object):
self.logger.suite_start(self.tests)
for test in self.manifest_skipped_tests:
name = os.path.basename(test['path'])
self.logger.test_start(name)
self.logger.test_end(name,
'SKIP',
message=test['disabled'])
self.todo += 1
counter = self.repeat
while counter >=0:
round = self.repeat - counter
@ -762,13 +770,6 @@ class BaseMarionetteTestRunner(object):
test.setdefault('disabled', 'filtered by type (%s)' % self.type)
self.manifest_skipped_tests.append(test)
for test in self.manifest_skipped_tests:
self.logger.test_start(os.path.basename(test['path']))
self.logger.test_end(os.path.basename(test['path']),
'SKIP',
message=test['disabled'])
self.todo += 1
for i in target_tests:
if not os.path.exists(i["path"]):
raise IOError("test file: %s does not exist" % i["path"])