forked from qt-creator/qt-creator
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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user