Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Stop vagrant up output from corrupting test status

Juan Denise3337f055080
diff --git a/scripts/test/full-stack-test.ps1 b/scripts/test/full-stack-test.ps1
index a2f3edef..ca10dd9f 100644
--- a/scripts/test/full-stack-test.ps1
+++ b/scripts/test/full-stack-test.ps1
@@ -229,8 +229,10 @@ function Test-VagrantInstall {
Set-VmStage -Vm $Vm -Stage 'launching VM (vagrant up, ~5-10 min first time)'
Write-Host " [$Vm] vagrant up... (full output below; also saved to vagrant-up.log)" -ForegroundColor DarkCyan
# Tee so the operator can see download progress + any prompts live,
- # and the log file still gets a copy for later inspection.
- & $VgExe up --provider=hyperv 2>&1 | Tee-Object -FilePath (Join-Path $VmOut 'vagrant-up.log')
+ # and the log file still gets a copy for later inspection. Pipe to
+ # Out-Host at the end so the pipeline output is CONSUMED — otherwise
+ # it leaks into this function's return stream and corrupts $status.
+ & $VgExe up --provider=hyperv 2>&1 | Tee-Object -FilePath (Join-Path $VmOut 'vagrant-up.log') | Out-Host
if ($LASTEXITCODE -ne 0) {
Set-Content -Path $statusFile -Value 'LAUNCH_FAILED' -Encoding ascii
Set-VmStage -Vm $Vm -Stage 'launch failed'