mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
Fixes incorrect nodejs detection in tester.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user