pass nim path to subprocess testament (#6779)

This commit is contained in:
Jacek Sieka 2017-11-19 16:22:36 +08:00 • committed by Andreas Rumpf
commit 035f0fb023
2 changed files with 8 additions and 1 deletions

4
.gitignore vendored
View file

@ -57,3 +57,7 @@ dist/
# Private directories and files (IDEs)
.*/
~*
# testament cruft
testresults/
test.txt

View file

@ -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):