From 1d16081cd7d36f3e483cdefcc4f68d1e7c00ddaf Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Mon, 13 Mar 2017 10:26:24 +0100 Subject: =?UTF-8?q?Fix=20output=20of=20testrunner.py=20and=20remove=20?= =?UTF-8?q?=E2=80=99six=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is a small error that reports the wrong total number of changes. Furthermore, the dependency of the six modure could be removed by a single line. Change-Id: I510eab49ae3b9c5c36a7ae31a982334fda18567d Reviewed-by: Friedemann Kleint --- testrunner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testrunner.py') diff --git a/testrunner.py b/testrunner.py index 67ccc51a6..381f19a73 100644 --- a/testrunner.py +++ b/testrunner.py @@ -74,7 +74,7 @@ import subprocess import zipfile import argparse -from six import PY3 +PY3 = sys.version_info[0] == 3 # from the six module from subprocess import PIPE if PY3: from subprocess import TimeoutExpired @@ -794,10 +794,10 @@ if __name__ == '__main__': .format(*r)) print("********* Finished testing of %s *********" % project) print() - q = map(lambda x, y: x+y, r, q) + q = list(map(lambda x, y: x+y, r, q)) if len(args.projects) > 1: - print("All above projects:", sum(r), "tests.", + print("All above projects:", sum(q), "tests.", "{} passed, {} failed, {} skipped, {} blacklisted, {} bpassed." .format(*q)) print() -- cgit v1.2.3