From 035f0fb023d4b8fddc838eb9b11b1385afa7e25e Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Sun, 19 Nov 2017 16:22:36 +0800 Subject: [PATCH] pass nim path to subprocess testament (#6779) --- .gitignore | 4 ++++ tests/testament/tester.nim | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5476e173ff904..fc090130bbe45 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 23068a1e07826..2f0485135e7c7 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):