diff options
-rw-r--r-- | tests/testament/tester.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim index 178308e40..361a5a26f 100644 --- a/tests/testament/tester.nim +++ b/tests/testament/tester.nim @@ -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( |