python: Don't treat skipped tests as error

* lang/python/tests/run-tests.py (failed): Don't count skipped tests
for the return code.
This commit is contained in:
Andre Heinecke 2017-03-30 16:22:20 +02:00
parent 159505a288
commit f8a9ecc629
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View 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)))
sys.exit(len(results) - count(0))
sys.exit(len(results) - count(0) - count(77))
sys.exit(results[0])