From f939f19b9dfc524fd99ea606955f05115eed158f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Wed, 7 Jun 2023 22:55:12 +0200 Subject: [PATCH] SquishTests: Update tst_opencreator_qbs for Python3 Change-Id: If0e03204c49e80eb2bfca6e0d14413aad9d790f4 Reviewed-by: Christian Stenger Reviewed-by: --- tests/system/suite_general/tst_opencreator_qbs/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/system/suite_general/tst_opencreator_qbs/test.py b/tests/system/suite_general/tst_opencreator_qbs/test.py index 555e1437582..88c39f57533 100644 --- a/tests/system/suite_general/tst_opencreator_qbs/test.py +++ b/tests/system/suite_general/tst_opencreator_qbs/test.py @@ -25,8 +25,8 @@ def main(): test.warning("Parsing project timed out") compareProjectTree(rootNodeTemplate % "Qt Creator", "projecttree_creator.tsv") buildIssuesTexts = map(lambda i: str(i[3]), getBuildIssues()) - deprecationWarnings = filter(lambda s: "deprecated" in s, buildIssuesTexts) + deprecationWarnings = "\n".join(set(filter(lambda s: "deprecated" in s, buildIssuesTexts))) if deprecationWarnings: test.warning("Creator claims that the .qbs file uses deprecated features.", - "\n".join(set(deprecationWarnings))) + deprecationWarnings) invokeMenuItem("File", "Exit")