From debc304bf868310d19483d6079b1a841f9341e64 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Tue, 11 Feb 2020 12:03:19 +0100 Subject: Squish: Update detection of configured kits Change-Id: Icade1feffde4a1b252175d8012c411a0a423748f Reviewed-by: Christian Stenger --- tests/system/shared/project_explorer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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("

Click to activate:

") - or str(kit.toolTip).startswith("

Kit is unsuited for project

")) + return not ("

Click to activate

" in str(kit.toolTip) + or "

Kit is unsuited for project

" in str(kit.toolTip)) # returns a list of the IDs (see class Targets) of all kits # which are currently configured for the active project -- cgit v1.2.1