From 5c5e12981e7fd5f1a6e1df20e0e8762bfedd09f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Fri, 31 Mar 2023 16:47:22 +0200 Subject: [PATCH] SquishTests: Add an explanation about automatically created kits Change-Id: I1bb351c56600fa4a6e420299bdbaff1c436d19c9 Reviewed-by: Reviewed-by: Christian Stenger --- tests/system/suite_general/tst_default_settings/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/system/suite_general/tst_default_settings/test.py b/tests/system/suite_general/tst_default_settings/test.py index c084e7b83c0..10a31534535 100644 --- a/tests/system/suite_general/tst_default_settings/test.py +++ b/tests/system/suite_general/tst_default_settings/test.py @@ -142,6 +142,10 @@ def __qtFunc__(it, foundQt, qmakePath): def __kitFunc__(it, foundQt, foundCompNames): global currentSelectedTreeItem, warningOrError qtVersionStr = str(waitForObjectExists(":Kits_QtVersion_QComboBox").currentText) + # The following may fail if Creator doesn't find a Qt version in PATH. It will then create one + # Qt-less kit for each available toolchain instead of just one default Desktop kit. + # Since Qt usually is in PATH on the test machines anyway, we consider this too much of a + # corner case to add error handling code or make Qt in PATH a hard requirement for the tests. test.compare(it, "Desktop (default)", "Verifying whether default Desktop kit has been created.") if foundQt: test.compare(qtVersionStr, foundQt, "Verifying if Qt versions match.")