You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/10/13 21:23:11 UTC

mesos git commit: Provided more information on failed parallel tests.

Repository: mesos
Updated Branches:
  refs/heads/master c1cdb8141 -> f67e8b572


Provided more information on failed parallel tests.

In case of failed tests the parallel test runner always prints the
full log of all failed shards. Since our tests produce usually more
than a screenful of output usually only failed tests from the shard
reported last will be visible which can give the impression that only
this shard failed.

This commit adds the number of failed shards to the output so users
get some hint that more failed tests might be reported off their
visible screen area.

Review: https://reviews.apache.org/r/52841/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f67e8b57
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f67e8b57
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f67e8b57

Branch: refs/heads/master
Commit: f67e8b572c3e8111f7ab79b65ed5e3dbdd20cb46
Parents: c1cdb81
Author: Benjamin Bannier <be...@mesosphere.io>
Authored: Thu Oct 13 23:23:08 2016 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Thu Oct 13 23:23:08 2016 +0200

----------------------------------------------------------------------
 support/mesos-gtest-runner.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/f67e8b57/support/mesos-gtest-runner.py
----------------------------------------------------------------------
diff --git a/support/mesos-gtest-runner.py b/support/mesos-gtest-runner.py
index 6c1cf54..457211a 100755
--- a/support/mesos-gtest-runner.py
+++ b/support/mesos-gtest-runner.py
@@ -245,7 +245,10 @@ if __name__ == '__main__':
                     print(result[1], file=sys.stdout)
 
         if NFAILED > 0:
-            print(Bcolors.colorize('\n[FAIL]', Bcolors.FAIL, Bcolors.BOLD),
+            print(Bcolors.colorize(
+                '\n[FAIL]: {nfailed} shards have failed tests'.format(
+                    nfailed=NFAILED),
+                Bcolors.FAIL, Bcolors.BOLD),
                   file=sys.stderr)
         else:
             print(Bcolors.colorize('\n[PASS]', Bcolors.OKGREEN, Bcolors.BOLD))