summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoralaviss <alaviss@users.noreply.github.com>2020-04-24 07:20:33 +0000
committerGitHub <noreply@github.com>2020-04-24 09:20:33 +0200
commitdd5ccc3e5aeb927a65ac40117113a1ca6b02d48c (patch)
treeb647182e7742da9bb7a37491350bf64df8092f7c
parentdff007f66df8b8cf9f04d03a56dd071a1abbf015 (diff)
downloadNim-dd5ccc3e5aeb927a65ac40117113a1ca6b02d48c.tar.gz
testament: don't try to test nimgrep if it's not there [backport:1.2] (#14085)
One more compiler source-specific tackled
-rw-r--r--testament/categories.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/testament/categories.nim b/testament/categories.nim
index 601e9306e..e1519468f 100644
--- a/testament/categories.nim
+++ b/testament/categories.nim
@@ -260,9 +260,10 @@ proc asyncTests(r: var TResults, cat: Category, options: string) =
 # ------------------------- debugger tests ------------------------------------
 
 proc debuggerTests(r: var TResults, cat: Category, options: string) =
-  var t = makeTest("tools/nimgrep", options & " --debugger:on", cat)
-  t.spec.action = actionCompile
-  testSpec r, t
+  if fileExists("tools/nimgrep.nim"):
+    var t = makeTest("tools/nimgrep", options & " --debugger:on", cat)
+    t.spec.action = actionCompile
+    testSpec r, t
 
 # ------------------------- JS tests ------------------------------------------