From dd5ccc3e5aeb927a65ac40117113a1ca6b02d48c Mon Sep 17 00:00:00 2001 From: alaviss Date: Fri, 24 Apr 2020 07:20:33 +0000 Subject: testament: don't try to test nimgrep if it's not there [backport:1.2] (#14085) One more compiler source-specific tackled --- testament/categories.nim | 7 ++++--- 1 file 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 ------------------------------------------ -- cgit 1.4.1-2-gfad0