Make sure that there's a statement separator after we update the path, otherwise the built script will not run (#5137)

This commit is contained in:
James Truher [MSFT] 2017-10-17 13:32:21 -07:00 committed by Aditya Patwardhan
parent f604b0e3f0
commit d5445ff691

View file

@ -667,7 +667,7 @@ function Invoke-OpenCover
$testToolsExePath = (Resolve-Path(Join-Path $TestPath -ChildPath "..\tools\TestExe\bin")).Path
$updatedProcessEnvPath = "${testToolsExePath};${env:PATH}"
$startupArgs = "Set-ExecutionPolicy Bypass -Force -Scope Process; `$env:PSModulePath = '${updatedEnvPath}'; `$env:Path = '${updatedProcessEnvPath}'"
$startupArgs = "Set-ExecutionPolicy Bypass -Force -Scope Process; `$env:PSModulePath = '${updatedEnvPath}'; `$env:Path = '${updatedProcessEnvPath}';"
$targetArgs = "${startupArgs}", "Invoke-Pester","${TestPath}","-OutputFormat $PesterLogFormat"
if ( $CIOnly )