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 <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Christian Stenger
2022-09-15 07:43:51 +02:00
parent 1fe4db0231
commit 6ae6390661

View File

@@ -83,7 +83,7 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con
const QStringList &testSets = testCases(); const QStringList &testSets = testCases();
if (!testSets.isEmpty()) if (!testSets.isEmpty())
arguments << "--gtest_filter=" + testSets.join(':'); arguments << "--gtest_filter=\"" + testSets.join(':') + '"';
auto gSettings = static_cast<GTestSettings *>(framework()->testSettings()); auto gSettings = static_cast<GTestSettings *>(framework()->testSettings());
if (!gSettings) if (!gSettings)