fix: harden headless classic package smoke
This commit is contained in:
parent
01c7716fe7
commit
9deca63d48
1 changed files with 8 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue