From 6692d95ee2941de587f201ac2021bf9558a41f6f Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Wed, 16 Apr 2014 21:02:34 +0100 Subject: [PATCH] Fixes incorrect nodejs detection in tester. --- tests/testament/tester.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim index 178308e400..361a5a26f1 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(