summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2017-11-19 16:22:36 +0800
committerAndreas Rumpf <rumpf_a@web.de>2017-11-19 09:22:36 +0100
commit035f0fb023d4b8fddc838eb9b11b1385afa7e25e (patch)
tree50aab619cb56a247d8a26b3697a4a3974e3064c2 /tests
parentaac94e0ab58e9bdc896a59422d4ab9dcb87bb9e3 (diff)
downloadNim-035f0fb023d4b8fddc838eb9b11b1385afa7e25e.tar.gz
pass nim path to subprocess testament (#6779)
Diffstat (limited to 'tests')
-rw-r--r--tests/testament/tester.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index 23068a1e0..2f0485135 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -465,7 +465,10 @@ proc main() =
     let testsDir = "tests" & DirSep
     var myself = quoteShell(findExe("tests" / "testament" / "tester"))
     if targetsStr.len > 0:
-      myself &= " '--targets:" & targetsStr & "'"
+      myself &= " " & quoteShell("--targets:" & targetsStr)
+
+    myself &= " " & quoteShell("--nim:" & compilerPrefix)
+
     var cmds: seq[string] = @[]
     let rest = if p.cmdLineRest.string.len > 0: " " & p.cmdLineRest.string else: ""
     for kind, dir in walkDir(testsDir):