From 50199cab9376de11e302e53c19c58670b92f2f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Tue, 1 Mar 2022 22:45:49 +0100 Subject: Squish: Fix checkLastBuild() with python3 Change-Id: I25c02f91eab4a7cbf784ab726e0fe24210050a84 Reviewed-by: Reviewed-by: Christian Stenger --- tests/system/shared/build_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/system/shared/build_utils.py') diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py index b8187760fc..f74bea0df1 100644 --- a/tests/system/shared/build_utils.py +++ b/tests/system/shared/build_utils.py @@ -40,7 +40,7 @@ def checkLastBuild(expectedToFail=False, createTasksFileOnError=True): test.log("checkLastBuild called without a build") return buildIssues = getBuildIssues() - types = map(lambda i: i[5], buildIssues) + types = [i[5] for i in buildIssues] errors = types.count("1") warnings = types.count("2") gotErrors = errors != 0 @@ -78,8 +78,8 @@ def waitForCompile(timeout=60000): def dumpBuildIssues(listModel): issueDump = [] for index in dumpIndices(listModel): - issueDump.extend([map(lambda role: index.data(role).toString(), - range(Qt.UserRole, Qt.UserRole + 6))]) + issueDump.extend([[index.data(role).toString() for role + in range(Qt.UserRole, Qt.UserRole + 6)]]) return issueDump # counter for written tasks files -- cgit v1.2.1