summaryrefslogtreecommitdiff
path: root/tests/system/shared/build_utils.py
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@theqtcompany.com>2016-04-06 17:46:39 +0200
committerRobert Loehning <robert.loehning@theqtcompany.com>2016-04-07 09:31:57 +0000
commit78c3fcc1600cf8693073155a3ac77a785de0e91d (patch)
tree591921bd5cabf5ddcb50d5e49539bfca81fdc7ac /tests/system/shared/build_utils.py
parent322c2d012f7e6b207b1e73f84cf1e9ba3036595a (diff)
downloadqt-creator-78c3fcc1600cf8693073155a3ac77a785de0e91d.tar.gz
Squish: Small cleanup
Change-Id: I8ca788b28612568935dcf68bc57089c0a0174fb1 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'tests/system/shared/build_utils.py')
-rw-r--r--tests/system/shared/build_utils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py
index 3d1cfdaaa9..964cec2458 100644
--- a/tests/system/shared/build_utils.py
+++ b/tests/system/shared/build_utils.py
@@ -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: