summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-02-11 12:03:19 +0100
committerRobert Loehning <robert.loehning@qt.io>2020-02-11 12:04:26 +0000
commitdebc304bf868310d19483d6079b1a841f9341e64 (patch)
treefd09ac2e3a9f694dfde1145888711bd8f36ea8ed /tests
parentaba3777568f136bb34d91e7f0448b44a8e7f2399 (diff)
downloadqt-creator-debc304bf868310d19483d6079b1a841f9341e64.tar.gz
Squish: Update detection of configured kits
Change-Id: Icade1feffde4a1b252175d8012c411a0a423748f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/shared/project_explorer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/system/shared/project_explorer.py b/tests/system/shared/project_explorer.py
index 01a2e81c99..ba022dcfed 100644
--- a/tests/system/shared/project_explorer.py
+++ b/tests/system/shared/project_explorer.py
@@ -47,8 +47,8 @@ def switchViewTo(view):
"window=':Qt Creator_Core::Internal::MainWindow'}"), 20, 20 + 52 * view, 0, Qt.LeftButton)
def __kitIsActivated__(kit):
- return not (str(kit.toolTip).startswith("<h3>Click to activate:</h3>")
- or str(kit.toolTip).startswith("<h3>Kit is unsuited for project</h3>"))
+ return not ("<h3>Click to activate</h3>" in str(kit.toolTip)
+ or "<h3>Kit is unsuited for project</h3>" in str(kit.toolTip))
# returns a list of the IDs (see class Targets) of all kits
# which are currently configured for the active project