From a46fc4e8a2c36599d1975a09d86758b22f271545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Thu, 16 May 2024 12:27:31 +0200 Subject: [PATCH] SquishTests: Ignore hide/show entry in kit tree Change-Id: Idb32c143d17867e7ccd86e4814604785eb4fc08a Reviewed-by: Christian Stenger --- tests/system/shared/project_explorer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/system/shared/project_explorer.py b/tests/system/shared/project_explorer.py index 447b8057d5b..f74e3a107e8 100644 --- a/tests/system/shared/project_explorer.py +++ b/tests/system/shared/project_explorer.py @@ -24,6 +24,9 @@ def iterateConfiguredKits(): kitIndices = dumpIndices(treeView.model(), waitForObject(bAndRIndex)) configuredKitNames = map(lambda t: str(t.data(0)), filter(__kitIsActivated__, kitIndices)) + # Remove hide/show entries which are in tree but not kits + configuredKitNames = filter(lambda n: n != "Hide Inactive Kits" and n != "Show All Kits", + configuredKitNames) return map(Targets.getIdForTargetName, configuredKitNames)