Commit 599324d0 authored by Sergiy Byelozyorov's avatar Sergiy Byelozyorov Committed by Commit Bot

[tools] Pass output to GetOutcome function

R=majeski@google.com
TBR=machenbach@chromium.org

This is breaking some test runs, e.g.
https://chromium-swarm.appspot.com/task?id=3a69c31ccb964d10&refresh=10&show_raw=1.

Bug: v8:6917
Change-Id: I61c12eafdf12a1bee2bf08de75f26b0d44fd0056
Reviewed-on: https://chromium-review.googlesource.com/825122
Commit-Queue: Sergiy Byelozyorov <sergiyb@chromium.org>
Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50089}
parent 9034d8c8
...@@ -357,7 +357,7 @@ class JsonTestProgressIndicator(ProgressIndicator): ...@@ -357,7 +357,7 @@ class JsonTestProgressIndicator(ProgressIndicator):
"stdout": output.stdout, "stdout": output.stdout,
"stderr": output.stderr, "stderr": output.stderr,
"exit_code": output.exit_code, "exit_code": output.exit_code,
"result": test.suite.GetOutcome(test), "result": test.suite.GetOutcome(test, output),
"expected": test.suite.GetExpectedOutcomes(test), "expected": test.suite.GetExpectedOutcomes(test),
"duration": test.duration, "duration": test.duration,
...@@ -396,7 +396,7 @@ class FlakinessTestProgressIndicator(ProgressIndicator): ...@@ -396,7 +396,7 @@ class FlakinessTestProgressIndicator(ProgressIndicator):
def HasRun(self, test, output, has_unexpected_output): def HasRun(self, test, output, has_unexpected_output):
key = test.get_id() key = test.get_id()
outcome = test.suite.GetOutcome(test) outcome = test.suite.GetOutcome(test, output)
assert outcome in ["PASS", "FAIL", "CRASH", "TIMEOUT"] assert outcome in ["PASS", "FAIL", "CRASH", "TIMEOUT"]
if test.run == 1: if test.run == 1:
# First run of this test. # First run of this test.
......
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