test: refuse a RimWorld path without the game
This commit is contained in:
parent
f6662f96dc
commit
be2d3d9c63
|
|
@ -20,6 +20,8 @@ param(
|
||||||
[int]$TimeoutSeconds = 900
|
[int]$TimeoutSeconds = 900
|
||||||
)
|
)
|
||||||
$ErrorActionPreference = 'Stop'
|
$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
|
$repo = Split-Path -Parent $PSScriptRoot
|
||||||
$testMod = Join-Path $PSScriptRoot 'BlaxSlavesTests'
|
$testMod = Join-Path $PSScriptRoot 'BlaxSlavesTests'
|
||||||
$link = Join-Path $RimWorldDir 'Mods\BlaxSlavesTests'
|
$link = Join-Path $RimWorldDir 'Mods\BlaxSlavesTests'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue