From 3b55e4b03499730085924edfdf04b140ef62274e Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 17 Nov 2017 16:19:57 +0100 Subject: Give the setupRunEnvironment script an additional parameter Required by follow-up commit. [ChangeLog] The Module.setupRunEnvironment script now has a new parameter "config". Users can set it via the --setup-run-env-config option of the run command. Change-Id: I1be57fcff5321874cf3dcf4fb3a7ef7d6f69a8a5 Reviewed-by: Jake Petroules --- tests/auto/cmdlineparser/tst_cmdlineparser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto/cmdlineparser') diff --git a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp index d56081cf1..59f4adbc3 100644 --- a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp +++ b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp @@ -170,6 +170,9 @@ private slots: QVERIFY(parser.showVersion()); QVERIFY(parser.parseCommandLine(QStringList("-V"))); QVERIFY(parser.showVersion()); + + QVERIFY(parser.parseCommandLine(QStringList{"run", "--setup-run-env-config", "x,y,z"})); + QCOMPARE(parser.runEnvConfig(), QStringList({"x", "y", "z"})); } void testInvalidCommandLine() -- cgit v1.2.3