From 2907d60973a89e2097129710a344e7c1c182f528 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 15 Mar 2022 13:10:12 +0100 Subject: [PATCH] Squish: Handle build systems more appropriately MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I43e89d76c4199a741a5606dd0d6de2165b8133c6 Reviewed-by: Robert Löhning Reviewed-by: Christian Stenger --- tests/system/shared/project.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py index a5b9cd2dedf..e0b79316b81 100644 --- a/tests/system/shared/project.py +++ b/tests/system/shared/project.py @@ -224,6 +224,11 @@ def __modifyAvailableTargets__(available, requiredQt, asStrings=False): if Qt5Path.toVersionTuple(found.group(1)) < Qt5Path.toVersionTuple(requiredQt): available.discard(currentItem) +def __getProjectFileName__(projectName, buildSystem): + if buildSystem is None or buildSystem == "CMake": + return "CMakeLists.txt" + else: + return projectName + (".pro" if buildSystem == "qmake" else ".qbs") # Creates a Qt GUI project # param path specifies where to create the project @@ -243,7 +248,7 @@ def createProject_Qt_GUI(path, projectName, checks=True, addToVersionControl="