forked from qt-creator/qt-creator
Squish: Fix checkLastBuild() with python3
Change-Id: I25c02f91eab4a7cbf784ab726e0fe24210050a84 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -40,7 +40,7 @@ def checkLastBuild(expectedToFail=False, createTasksFileOnError=True):
|
|||||||
test.log("checkLastBuild called without a build")
|
test.log("checkLastBuild called without a build")
|
||||||
return
|
return
|
||||||
buildIssues = getBuildIssues()
|
buildIssues = getBuildIssues()
|
||||||
types = map(lambda i: i[5], buildIssues)
|
types = [i[5] for i in buildIssues]
|
||||||
errors = types.count("1")
|
errors = types.count("1")
|
||||||
warnings = types.count("2")
|
warnings = types.count("2")
|
||||||
gotErrors = errors != 0
|
gotErrors = errors != 0
|
||||||
@@ -78,8 +78,8 @@ def waitForCompile(timeout=60000):
|
|||||||
def dumpBuildIssues(listModel):
|
def dumpBuildIssues(listModel):
|
||||||
issueDump = []
|
issueDump = []
|
||||||
for index in dumpIndices(listModel):
|
for index in dumpIndices(listModel):
|
||||||
issueDump.extend([map(lambda role: index.data(role).toString(),
|
issueDump.extend([[index.data(role).toString() for role
|
||||||
range(Qt.UserRole, Qt.UserRole + 6))])
|
in range(Qt.UserRole, Qt.UserRole + 6)]])
|
||||||
return issueDump
|
return issueDump
|
||||||
|
|
||||||
# counter for written tasks files
|
# counter for written tasks files
|
||||||
|
Reference in New Issue
Block a user