fix: deploy test gate uses a per-run pytest basetemp

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
gti
2026-09-24 10:59:25 -03:00
co-authored by Claude Sonnet 5
parent 40a4d835fe
commit d5d313375c
+3 -1
View File
@@ -44,7 +44,9 @@ try {
if (-not (Test-Path $exe)) { throw "installer not built: $exe (run scripts\build_windows_installer.ps1)" } if (-not (Test-Path $exe)) { throw "installer not built: $exe (run scripts\build_windows_installer.ps1)" }
} }
if (-not $SkipTests) { if (-not $SkipTests) {
& $Python -m pytest tests central/tests agent/tests -q -p no:cacheprovider # per-run basetemp: some tests ACL-lock their tmp dirs, which breaks pytest's shared default temp root
$base = Join-Path $Root (".pytmp␍un-" + (Get-Date -Format "yyyyMMddHHmmss"))
& $Python -m pytest tests central/tests agent/tests -q -p no:cacheprovider --basetemp=$base
if ($LASTEXITCODE -ne 0) { throw "tests failed - deploy aborted" } if ($LASTEXITCODE -ne 0) { throw "tests failed - deploy aborted" }
} }