Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f89c0b56 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Akonaditest: Fix testenv script on Windows

parent 1a3257f4
......@@ -32,10 +32,10 @@ void ShellScript::writeEnvironmentVariables()
{
for (const auto &envvar : qAsConst(mEnvVars)) {
#ifdef Q_OS_WIN
const auto tmpl = QStringLiteral("$_old_%1=$%1\r\n"
"$%1=\"%2\"\r\n");
const auto tmpl = QStringLiteral("$env:_old_%1=$env:%1\r\n"
"$env:%1=\"%2\"\r\n");
#else
const auto tmpl = QStringLiteral("_old_%1=$%1\n"
const auto tmpl = QStringLiteral("$_old_%1=$%1\n"
"%1=\"%2\"\n"
"export %1\n");
#endif
......@@ -58,7 +58,7 @@ void ShellScript::writeShutdownFunction()
" qdbus %1 %2 %3\r\n"
"%4"
"}\r\n\r\n");
const auto restoreTmpl = QStringLiteral(" $%1=$_old_%1\r\n");
const auto restoreTmpl = QStringLiteral(" $env:%1=$env:_old_%1\r\n");
#else
const auto tmpl = QStringLiteral("function shutdown-testenvironment()\n"
"{\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment