$ErrorActionPreference = 'Stop' . ./.local/toolchain/env.ps1 $env:CARGO_BUILD_JOBS = '1' $gateRoot = Join-Path (Get-Location) '.local/text-navigation-desktop-20260911' $gateLog = Join-Path $gateRoot 'test1.log' if (Test-Path -LiteralPath $gateLog) { throw 'Refusing to overwrite test1' } $started = [DateTime]::UtcNow.ToString('o') & cargo test --locked --offline -p oa-desktop --bin arcadia-studio -- --test-threads=1 2>&1 | Tee-Object -FilePath $gateLog $gateExit = $LASTEXITCODE [ordered]@{started=$started;finished=[DateTime]::UtcNow.ToString('o');exitCode=$gateExit;command='cargo test --locked --offline -p oa-desktop --bin arcadia-studio -- --test-threads=1';buildJobs=1} | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $gateRoot 'test1-status.json') exit $gateExit