Fixes incorrect nodejs detection in tester.

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

View file

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