python: Don't treat skipped tests as error
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 30 Mar 2017 14:22:20 +0000 (16:22 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 30 Mar 2017 14:22:20 +0000 (16:22 +0200)
* lang/python/tests/run-tests.py (failed): Don't count skipped tests
for the return code.

lang/python/tests/run-tests.py

index c4af526..9e061d8 100644 (file)
@@ -102,5 +102,5 @@ def failed():
 if not args.quiet:
     print("{0} tests run, {1} succeeded, {2} failed, {3} skipped.".format(
         len(results), count(0), failed(), count(77)))
 if not args.quiet:
     print("{0} tests run, {1} succeeded, {2} failed, {3} skipped.".format(
         len(results), count(0), failed(), count(77)))
-    sys.exit(len(results) - count(0))
+    sys.exit(len(results) - count(0) - count(77))
 sys.exit(results[0])
 sys.exit(results[0])