Fix test driver json output.
authormachenbach@chromium.org <machenbach@chromium.org>
Tue, 11 Nov 2014 06:06:20 +0000 (06:06 +0000)
committermachenbach@chromium.org <machenbach@chromium.org>
Tue, 11 Nov 2014 06:06:42 +0000 (06:06 +0000)
TBR=tandrii@chromium.org

Review URL: https://codereview.chromium.org/716713002

Cr-Commit-Position: refs/heads/master@{#25254}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25254 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

tools/testrunner/local/progress.py

index 84aceba..2616958 100644 (file)
@@ -333,7 +333,7 @@ class JsonTestProgressIndicator(ProgressIndicator):
       "stderr": test.output.stderr,
       "exit_code": test.output.exit_code,
       "result": test.suite.GetOutcome(test),
-      "expected": list(test.outcomes) or ["PASS"],
+      "expected": list(test.outcomes or ["PASS"]),
     })