From f8a9ecc6290ebd73fa36647cdfca285fe4d94a62 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Thu, 30 Mar 2017 16:22:20 +0200 Subject: [PATCH] python: Don't treat skipped tests as error * lang/python/tests/run-tests.py (failed): Don't count skipped tests for the return code. --- lang/python/tests/run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/python/tests/run-tests.py b/lang/python/tests/run-tests.py index c4af5266..9e061d83 100644 --- a/lang/python/tests/run-tests.py +++ b/lang/python/tests/run-tests.py @@ -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])