From 9a76398ec6405dab88512fbc891b809ec2dd0325 Mon Sep 17 00:00:00 2001 From: alaviss Date: Mon, 20 Jul 2020 06:02:48 +0000 Subject: [PATCH] koch: use in-tree Nim to run test if possible (#15018) Fixes #15013 --- koch.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koch.nim b/koch.nim index 95c54892f9..7dedb039ad 100644 --- a/koch.nim +++ b/koch.nim @@ -440,8 +440,10 @@ template `|`(a, b): string = (if a.len > 0: a else: b) proc tests(args: string) = nimexec "cc --opt:speed testament/testament" - let tester = quoteShell(getCurrentDir() / "testament/testament".exe) - let success = tryExec tester & " " & (args|"all") + var testCmd = quoteShell(getCurrentDir() / "testament/testament".exe) + testCmd.add " " & quoteShell("--nim:" & findNim()) + testCmd.add " " & (args|"all") + let success = tryExec testCmd if not success: quit("tests failed", QuitFailure)