Commit bdce6c83 authored by Marc-Antoine Ruel's avatar Marc-Antoine Ruel Committed by Commit Bot

Fix auto_stub.py for skipped tests.

This is blocking a luci roll in infra.

R=nodir@chromium.org

Change-Id: I996a74ba519cf05f72d430ca4a2e63e76436b509
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1598469Reviewed-by: 's avatarNodir Turakulov <nodir@chromium.org>
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>
parent 396ab3c6
...@@ -70,4 +70,7 @@ class TestCase(unittest.TestCase, AutoStubMixIn): ...@@ -70,4 +70,7 @@ class TestCase(unittest.TestCase, AutoStubMixIn):
def has_failed(self): def has_failed(self):
"""Returns True if the test has failed.""" """Returns True if the test has failed."""
if not self._resultForDoCleanups:
# Maybe skipped.
return False
return not self._resultForDoCleanups.wasSuccessful() return not self._resultForDoCleanups.wasSuccessful()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment