Squish: Small cleanup

Change-Id: I8ca788b28612568935dcf68bc57089c0a0174fb1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Robert Loehning
2016-04-06 17:46:39 +02:00
parent 322c2d012f
commit 78c3fcc160

View File

@@ -43,10 +43,7 @@ def checkLastBuild(expectedToFail=False, createTasksFileOnError=True):
errors = types.count("1") errors = types.count("1")
warnings = types.count("2") warnings = types.count("2")
gotErrors = errors != 0 gotErrors = errors != 0
if not (gotErrors ^ expectedToFail): test.verify(not (gotErrors ^ expectedToFail), "Errors: %s | Warnings: %s" % (errors, warnings))
test.passes("Errors: %s | Warnings: %s" % (errors, warnings))
else:
test.fail("Errors: %s | Warnings: %s" % (errors, warnings))
# additional stuff - could be removed... or improved :) # additional stuff - could be removed... or improved :)
test.log("Rows inside issues: %d" % model.rowCount()) test.log("Rows inside issues: %d" % model.rowCount())
if gotErrors and createTasksFileOnError: if gotErrors and createTasksFileOnError: