Skip to content

Commit

Permalink
pass nim path to subprocess testament (#6779)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck authored and Araq committed Nov 19, 2017
1 parent aac94e0 commit 035f0fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ dist/
# Private directories and files (IDEs)
.*/
~*

# testament cruft
testresults/
test.txt
5 changes: 4 additions & 1 deletion tests/testament/tester.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 035f0fb

Please sign in to comment.