diff options
author | Robert Löhning <robert.loehning@qt.io> | 2023-04-04 00:26:21 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2023-04-06 09:38:54 +0000 |
commit | 42c653b53c9e6acfd336c133a14a81290784a673 (patch) | |
tree | 26004e7778a78f1ef43a9789abcb039c520cb28d /tests/system/shared/build_utils.py | |
parent | 66f939c75847391a3b124ecbc173176abf573aae (diff) | |
download | qt-creator-42c653b53c9e6acfd336c133a14a81290784a673.tar.gz |
SquishTests: Don't filter out code model issues when we need them
Amends c46dff01995128bd97c03e6d732c85f662355bf9
Change-Id: I5f2613edf15f86161a576ab21f16f079bd12a59f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/system/shared/build_utils.py')
-rw-r--r-- | tests/system/shared/build_utils.py | 13 |
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 |