summaryrefslogtreecommitdiff
path: root/tests/system/shared/build_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/shared/build_utils.py')
-rw-r--r--tests/system/shared/build_utils.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py
index 4cf1bf82dc..74063c72f9 100644
--- a/tests/system/shared/build_utils.py
+++ b/tests/system/shared/build_utils.py
@@ -23,14 +23,17 @@ def toggleIssuesFilter(filterName, checked):
test.log("Exception while toggling filter '%s'" % filterName,
"%s(%s)" % (str(t), str(v)))
-def getBuildIssues():
+
+def getBuildIssues(ignoreCodeModel=True):
ensureChecked(":Qt Creator_Issues_Core::Internal::OutputPaneToggleButton")
model = waitForObject(":Qt Creator.Issues_QListView").model()
- # filter out possible code model issues present inside the Issues pane
- toggleIssuesFilter("Clang Code Model", False)
+ if ignoreCodeModel:
+ # filter out possible code model issues present inside the Issues pane
+ toggleIssuesFilter("Clang Code Model", False)
result = dumpBuildIssues(model)
- # reset the filter
- toggleIssuesFilter("Clang Code Model", True)
+ if ignoreCodeModel:
+ # reset the filter
+ toggleIssuesFilter("Clang Code Model", True)
return result
# this method checks the last build (if there's one) and logs the number of errors, warnings and