diff --git a/Tests/run-tests.ps1 b/Tests/run-tests.ps1 index df4431c..ab77f1e 100644 --- a/Tests/run-tests.ps1 +++ b/Tests/run-tests.ps1 @@ -20,6 +20,8 @@ param( [int]$TimeoutSeconds = 900 ) $ErrorActionPreference = 'Stop' +# A wrong path (for example a switch passed as a positional value) would put the Mods junction somewhere odd. +if (-not (Test-Path -LiteralPath (Join-Path $RimWorldDir 'Assembly-CSharp.dll'))) { throw "No RimWorld 1.7 install at '$RimWorldDir'." } $repo = Split-Path -Parent $PSScriptRoot $testMod = Join-Path $PSScriptRoot 'BlaxSlavesTests' $link = Join-Path $RimWorldDir 'Mods\BlaxSlavesTests'