diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-16 21:02:34 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-16 21:02:34 +0100 |
commit | 6692d95ee2941de587f201ac2021bf9558a41f6f (patch) | |
tree | d1bfe721c3c7a693f9166cb88a1d302b670cd582 /tests/testament | |
parent | c93c014bc6e44fd5ed38ce0a38f0cd057671e3da (diff) | |
download | Nim-6692d95ee2941de587f201ac2021bf9558a41f6f.tar.gz |
Fixes incorrect nodejs detection in tester.
Diffstat (limited to 'tests/testament')
-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( |