fix: harden headless classic package smoke

This commit is contained in:
axiomlogicnexus 2026-07-09 09:29:56 +00:00
parent 01c7716fe7
commit 9deca63d48

View file

@ -10,6 +10,7 @@ param(
'-DisablePlugins=MovieRenderPipeline',
'-SkipCookingEditorContent'
),
[bool]$HeadlessSmoke = $true,
[string]$ValidationReportPath = '',
[switch]$CleanArchive,
[switch]$SkipBuild,
@ -318,6 +319,7 @@ $ValidationReport = [ordered]@{
cookMaps = @($CookMaps)
smokeMaps = @($ResolvedSmokeMaps)
additionalCookerOptions = @($ResolvedAdditionalCookerOptions)
headlessSmoke = $HeadlessSmoke
cleanArchive = [bool]$CleanArchive
skipBuild = [bool]$SkipBuild
skipLaunch = [bool]$SkipLaunch
@ -358,7 +360,12 @@ try
'{0}.json' -f (Convert-PathToken -Value $SmokeMap)
)
Write-Host "Smoke validating packaged classic-cube map '$SmokeMap'..."
& $LaunchScriptPath -PackageRoot $ArchiveDirectory -MapUrl $SmokeMap -ReportPath $SmokeReportPath
& $LaunchScriptPath `
-PackageRoot $ArchiveDirectory `
-MapUrl $SmokeMap `
-ReportPath $SmokeReportPath `
-UseNullRHI:$HeadlessSmoke `
-NoSound:$HeadlessSmoke
if ($LASTEXITCODE -ne 0)
{
throw "Packaged classic-cube smoke launch failed for '$SmokeMap' with exit code $LASTEXITCODE."