pass nim path to subprocess testament (#6779)
This commit is contained in:
parent
aac94e0ab5
commit
035f0fb023
2 changed files with 8 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -57,3 +57,7 @@ dist/
|
||||||
# Private directories and files (IDEs)
|
# Private directories and files (IDEs)
|
||||||
.*/
|
.*/
|
||||||
~*
|
~*
|
||||||
|
|
||||||
|
# testament cruft
|
||||||
|
testresults/
|
||||||
|
test.txt
|
||||||
|
|
|
||||||
|
|
@ -465,7 +465,10 @@ proc main() =
|
||||||
let testsDir = "tests" & DirSep
|
let testsDir = "tests" & DirSep
|
||||||
var myself = quoteShell(findExe("tests" / "testament" / "tester"))
|
var myself = quoteShell(findExe("tests" / "testament" / "tester"))
|
||||||
if targetsStr.len > 0:
|
if targetsStr.len > 0:
|
||||||
myself &= " '--targets:" & targetsStr & "'"
|
myself &= " " & quoteShell("--targets:" & targetsStr)
|
||||||
|
|
||||||
|
myself &= " " & quoteShell("--nim:" & compilerPrefix)
|
||||||
|
|
||||||
var cmds: seq[string] = @[]
|
var cmds: seq[string] = @[]
|
||||||
let rest = if p.cmdLineRest.string.len > 0: " " & p.cmdLineRest.string else: ""
|
let rest = if p.cmdLineRest.string.len > 0: " " & p.cmdLineRest.string else: ""
|
||||||
for kind, dir in walkDir(testsDir):
|
for kind, dir in walkDir(testsDir):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue