diff --git a/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 b/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 index 40ff0a991..0899e203c 100644 --- a/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 +++ b/test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 @@ -16,7 +16,7 @@ Do { Write-Host "Starting the Functions host..." -ForegroundColor Yellow # The '&' operator is used to run the command in the background - cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated && func host start --port 7071 & + cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated && func host start --port 7071 *> Debug.txt & Write-Host "Waiting for the Functions host to start up..." -ForegroundColor Yellow Start-Sleep -Seconds 40 @@ -64,7 +64,7 @@ Do { } catch { Write-Host "An error occurred:" -ForegroundColor Red Write-Host $_ -ForegroundColor Red - $output = Receive-Job -Id $job.Id + $output = cat Debug.txt Write-Host $output # Rethrow the original exception