Fix serialization of expected outcomes in test driver.
authormachenbach@chromium.org <machenbach@chromium.org>
Mon, 10 Nov 2014 14:17:50 +0000 (14:17 +0000)
committermachenbach@chromium.org <machenbach@chromium.org>
Mon, 10 Nov 2014 14:18:20 +0000 (14:18 +0000)
The outcomes are saved as a set and need to be converted into
a list to be json-serializable.

TBR=tandrii@chromium.org

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

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

tools/testrunner/local/progress.py

index dcdf754..84aceba 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": test.outcomes or ["PASS"],
+      "expected": list(test.outcomes) or ["PASS"],
     })