run-tests: add --noskips option
authorMatt Mackall <mpm@selenic.com>
Sun, 11 Oct 2009 13:58:53 -0500
changeset 9580 25858f9e65e8
parent 9579 c06e7581bbaa
child 9581 3b93032516b3
child 9594 f0c5c59d878d
run-tests: add --noskips option
tests/run-tests.py
--- 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])