Skip to content

Commit 3f0d108

Browse files
authored
logs instead of exit code (#1976)
1 parent 037bcdd commit 3f0d108

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Scripts.Integration.Test/run-smoke-test.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ function RunTest([string] $type)
117117
Write-Host "$type test: Player.log contents END" -ForegroundColor Yellow
118118
}
119119

120-
# ExitCode 200 is the status code indicating success inside SmokeTest.cs
121-
If ($process.ExitCode -eq 200)
120+
# Relying on ExitCode does not seem reliable. We're looking for the line "SmokeTester is quitting." instead to indicate
121+
# a successful shut-down.
122+
If ($appLog | Select-String "SmokeTester is quitting.")
122123
{
123124
Write-Host "$type test: PASSED" -ForegroundColor Green
124125
}

0 commit comments

Comments
 (0)