Commit 78c3fcc1 authored by Robert Loehning's avatar Robert Loehning

Squish: Small cleanup

Change-Id: I8ca788b28612568935dcf68bc57089c0a0174fb1
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 322c2d01
......@@ -43,10 +43,7 @@ def checkLastBuild(expectedToFail=False, createTasksFileOnError=True):
errors = types.count("1")
warnings = types.count("2")
gotErrors = errors != 0
if not (gotErrors ^ expectedToFail):
test.passes("Errors: %s | Warnings: %s" % (errors, warnings))
else:
test.fail("Errors: %s | Warnings: %s" % (errors, warnings))
test.verify(not (gotErrors ^ expectedToFail), "Errors: %s | Warnings: %s" % (errors, warnings))
# additional stuff - could be removed... or improved :)
test.log("Rows inside issues: %d" % model.rowCount())
if gotErrors and createTasksFileOnError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment