changeset 9580:25858f9e65e8

run-tests: add --noskips option
author Matt Mackall <mpm@selenic.com>
date Sun, 11 Oct 2009 13:58:53 -0500
parents c06e7581bbaa
children 3b93032516b3 f0c5c59d878d
files tests/run-tests.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Fri Oct 09 03:53:24 2009 -0400
+++ b/tests/run-tests.py	Sun Oct 11 13:58:53 2009 -0500
@@ -102,6 +102,8 @@
         help="retest failed tests")
     parser.add_option("-s", "--cover_stdlib", action="store_true",
         help="print a test coverage report inc. standard libraries")
+    parser.add_option("-S", "--noskips", action="store_true",
+        help="don't report skip tests verbosely")
     parser.add_option("-t", "--timeout", type="int",
         help="kill errant tests after TIMEOUT seconds"
              " (default: $%s or %d)" % defaults['timeout'])
@@ -640,8 +642,9 @@
         vlog('pid %d exited, status %d' % (pid, status))
         failures |= status
     print
-    for s in skips:
-        print "Skipped %s: %s" % (s[0], s[1])
+    if not options.noskips:
+        for s in skips:
+            print "Skipped %s: %s" % (s[0], s[1])
     for s in fails:
         print "Failed %s: %s" % (s[0], s[1])