Bug 1647439 - [remote] Don't record unexpected skips when there's no expectation metadata r=remote-protocol-reviewers,jgraham

Differential Revision: https://phabricator.services.mozilla.com/D82068
This commit is contained in:
Maja Frydrychowicz 2020-07-02 18:46:57 +00:00
parent 3cde6129cc
commit d12c7d9231

View File

@ -248,7 +248,7 @@ class MochaOutputHandler(object):
# Also, mocha doesn't log test-start for skipped tests
if status == "SKIP":
self.logger.test_start(test_name)
if status not in expected:
if self.expected and status not in expected:
self.unexpected_skips.add(test_name)
expected = ["SKIP"]
known_intermittent = expected[1:]