Skip to content

Commit 8902946

Browse files
committed
Don't overwrite built-in $args
1 parent a646793 commit 8902946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/test/run_playmode_tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $timer = [System.Diagnostics.Stopwatch]::StartNew()
3636
Write-Host "Starting test run"
3737
Write-Host "Writing test output to $logPath...`n"
3838

39-
$args = @(
39+
$unityArgs = @(
4040
"-runTests",
4141
"-testPlatform playmode"
4242
"-batchmode",
@@ -46,8 +46,8 @@ $args = @(
4646
"-editorTestsFilter $editorTestsFilter"
4747
)
4848
Write-Host "Running command:"
49-
Write-Host $unityExePath ($args -Join " ")
50-
$handle = Start-Process -FilePath $unityExePath -PassThru -ArgumentList $args
49+
Write-Host $unityExePath ($unityArgs -Join " ")
50+
$handle = Start-Process -FilePath $unityExePath -PassThru -ArgumentList $unityArgs
5151

5252
Start-Process powershell -ArgumentList @(
5353
"-command",

0 commit comments

Comments
 (0)