Fixes incorrect nodejs detection in tester.

This commit is contained in:
Dominik Picheta
2014-04-16 21:02:34 +01:00
parent c93c014bc6
commit 6692d95ee2

View File

@@ -176,9 +176,8 @@ proc testSpec(r: var TResults, test: TTest) =
exeFile = dir / "nimcache" / file & ".js"
else:
exeFile = changeFileExt(tname, ExeExt)
if existsFile(exeFile):
if findExe("nodejs") == "":
if test.target == targetJS and findExe("nodejs") == "":
r.addResult(test, expected.outp, "nodejs binary not in PATH", reExeNotFound)
return
var (buf, exitCode) = execCmdEx(