diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2017-11-19 16:22:36 +0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-11-19 09:22:36 +0100 |
commit | 035f0fb023d4b8fddc838eb9b11b1385afa7e25e (patch) | |
tree | 50aab619cb56a247d8a26b3697a4a3974e3064c2 | |
parent | aac94e0ab58e9bdc896a59422d4ab9dcb87bb9e3 (diff) | |
download | Nim-035f0fb023d4b8fddc838eb9b11b1385afa7e25e.tar.gz |
pass nim path to subprocess testament (#6779)
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | tests/testament/tester.nim | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 5476e173f..fc090130b 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,7 @@ dist/ # Private directories and files (IDEs) .*/ ~* + +# testament cruft +testresults/ +test.txt 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): |