From 6ae6390661df7c4776a875995680c29039fa3f07 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 15 Sep 2022 07:43:51 +0200 Subject: [PATCH] AutoTest: Fix gtest filter usage There are shells that need the filter to be quoted to avoid shell globbing. Fixes: QTCREATORBUG-28153 Change-Id: I13eb5cb362b3543f5a88b27fb170c579ae6dde4b Reviewed-by: David Schulz Reviewed-by: Qt CI Bot Reviewed-by: --- src/plugins/autotest/gtest/gtestconfiguration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/autotest/gtest/gtestconfiguration.cpp b/src/plugins/autotest/gtest/gtestconfiguration.cpp index 025040f54c8..9c0ad41e196 100644 --- a/src/plugins/autotest/gtest/gtestconfiguration.cpp +++ b/src/plugins/autotest/gtest/gtestconfiguration.cpp @@ -83,7 +83,7 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con const QStringList &testSets = testCases(); if (!testSets.isEmpty()) - arguments << "--gtest_filter=" + testSets.join(':'); + arguments << "--gtest_filter=\"" + testSets.join(':') + '"'; auto gSettings = static_cast(framework()->testSettings()); if (!gSettings)