test: require the invalid conpty bundle diagnostic

refs #3651
This commit is contained in:
Jonathan Liebig
2026-09-15 22:08:50 +02:00
committed by GitHub
parent c1c2499f1c
commit ef926e4fe7
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -240,8 +240,7 @@ jobs:
-ExePath $exe `
-Session "ci-conpty-invalid-windows-2022-$env:GITHUB_RUN_ID-$env:GITHUB_RUN_ATTEMPT"
} catch {
if ($_.Exception.Message -notlike "workspace create failed with exit code*" -and
$_.Exception.Message -notlike "server exited with exit code*") {
if ($_.Exception.Message -notlike "*Herdr's app-local ConPTY bundle is invalid:*") {
throw
}
$rejected = $true
+2 -1
View File
@@ -101,7 +101,8 @@ try {
$ErrorActionPreference = $savedErrorActionPreference
}
if ($createdExitCode -ne 0) {
throw "workspace create failed with exit code $createdExitCode`: $($created -join "`n")"
$serverError = Get-Content -LiteralPath $serverErrorPath -Raw
throw "workspace create failed with exit code $createdExitCode`: $($created -join "`n")`n$serverError"
}
$paneId = (($created -join "`n") | ConvertFrom-Json).result.root_pane.pane_id
if ([string]::IsNullOrWhiteSpace($paneId)) {