From 14a27ede607a208fc8242968e915aa67685775f2 Mon Sep 17 00:00:00 2001 From: Rikki Gibson Date: Wed, 29 Jul 2020 08:18:39 -0700 Subject: [PATCH] Fix vscode-run-tests for dotnet path with spaces (#46317) --- scripts/vscode-run-tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vscode-run-tests.ps1 b/scripts/vscode-run-tests.ps1 index a77c57ae49c..72c9d045b4a 100644 --- a/scripts/vscode-run-tests.ps1 +++ b/scripts/vscode-run-tests.ps1 @@ -30,7 +30,7 @@ if ($projectFileInfo) { # Remove old run logs with the same prefix Remove-Item (Join-Path $resultsPath "$logFilePrefix*.html") -ErrorAction SilentlyContinue - $invocation = "$dotnetPath test $projectDir" + $filterArg + $frameworkArg + " --logger `"html;LogFilePrefix=$logfilePrefix`" --results-directory $resultsPath --no-build" + $invocation = "& `"$dotnetPath`" test $projectDir" + $filterArg + $frameworkArg + " --logger `"html;LogFilePrefix=$logfilePrefix`" --results-directory $resultsPath --no-build" Write-Output "> $invocation" Invoke-Expression $invocation -- GitLab