fix: deploy test gate uses a per-run pytest basetemp
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,7 +44,9 @@ try {
|
||||
if (-not (Test-Path $exe)) { throw "installer not built: $exe (run scripts\build_windows_installer.ps1)" }
|
||||
}
|
||||
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" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user