Reviewers: Jakob,

Message:
PTAL

Description:
Add information about rerun tests to json output.

BUG=374134
LOG=n

Please review this at https://codereview.chromium.org/364793004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+4, -1 lines):
  M tools/testrunner/local/progress.py


Index: tools/testrunner/local/progress.py
diff --git a/tools/testrunner/local/progress.py b/tools/testrunner/local/progress.py index 870dcc6b0bc10eee2543c257d9513387a4732fc4..3167028186cb51e8b55a8cb8f88a5cf7599db3cd 100644
--- a/tools/testrunner/local/progress.py
+++ b/tools/testrunner/local/progress.py
@@ -318,13 +318,16 @@ class JsonTestProgressIndicator(ProgressIndicator):

   def HasRun(self, test, has_unexpected_output):
     self.progress_indicator.HasRun(test, has_unexpected_output)
-    if not has_unexpected_output:
+    if test.run == 1 and not has_unexpected_output:
+      # Omit tests that pass on the first run, but collect output of tests
+      # that pass when rerun.
       return
     self.results.append({
       "name": test.GetLabel(),
       "flags": test.flags,
       "command": EscapeCommand(self.runner.GetCommand(test)).replace(
           ABS_PATH_PREFIX, ""),
+      "run": test.run,
       "stdout": test.output.stdout,
       "stderr": test.output.stderr,
       "exit_code": test.output.exit_code,


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to