test: refuse a RimWorld path without the game

This commit is contained in:
Fabian @ Blax Software 2026-11-29 11:54:03 +01:00
parent f6662f96dc
commit be2d3d9c63
1 changed files with 2 additions and 0 deletions

View File

@ -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'