From 619710852c57b8898164207aac3e86c69e863777 Mon Sep 17 00:00:00 2001 From: Leonard Hecker Date: Thu, 4 Feb 2021 02:05:50 +0100 Subject: [PATCH] Fix issues in tests.xml and OpenConsole.psm1 (#9011) * Fix the incorrect terminalCore path in tests.xml * Change the -TaefArgs argument of Invoke-OpenConsoleTests and Invoke-TaefInNewWindow to be []string, allowing multiple arguments to be passed to TAEF --- tools/OpenConsole.psm1 | 5 ++--- tools/tests.xml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/OpenConsole.psm1 b/tools/OpenConsole.psm1 index fd205c2ba..2992f09f2 100644 --- a/tools/OpenConsole.psm1 +++ b/tools/OpenConsole.psm1 @@ -116,7 +116,7 @@ function Invoke-TaefInNewWindow() [string]$TestDll, [parameter(Mandatory=$false)] - [string]$TaefArgs + [string[]]$TaefArgs ) Start-Process $OpenConsolePath -Wait -ArgumentList "powershell.exe $TaefPath $TestDll $TaefArgs; Read-Host 'Press enter to continue...'" @@ -163,7 +163,7 @@ function Invoke-OpenConsoleTests() [string]$Test, [parameter(Mandatory=$false)] - [string]$TaefArgs, + [string[]]$TaefArgs, [parameter(Mandatory=$false)] [ValidateSet('x64', 'x86')] @@ -188,7 +188,6 @@ function Invoke-OpenConsoleTests() $TestHostAppPath = "$env:OpenConsoleRoot\$Configuration\TestHostApp" } $OpenConsolePath = "$env:OpenConsoleroot\bin\$OpenConsolePlatform\$Configuration\OpenConsole.exe" - $RunTePath = "$env:OpenConsoleRoot\tools\runte.cmd" $TaefExePath = "$env:OpenConsoleRoot\packages\Taef.Redist.Wlk.10.57.200731005-develop\build\Binaries\$Platform\te.exe" $BinDir = "$env:OpenConsoleRoot\bin\$OpenConsolePlatform\$Configuration" diff --git a/tools/tests.xml b/tools/tests.xml index d1831acfa..b392c1547 100644 --- a/tools/tests.xml +++ b/tools/tests.xml @@ -2,7 +2,7 @@ - +