Fixes incorrect nodejs detection in tester.
This commit is contained in:
parent
c93c014bc6
commit
6692d95ee2
1 changed files with 1 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue