From be2d3d9c63d8c2552c144eb7514ffe1f189ddecd Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Sun, 29 Nov 2026 11:54:03 +0100 Subject: [PATCH] test: refuse a RimWorld path without the game --- Tests/run-tests.ps1 | 2 ++ 1 file changed, 2 insertions(+) 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'