mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 19:22:40 +00:00
Changed behavior when babel cannot be found/run
Failure to find and run babel when using the tester now produces a warning message instead of causing the tester to quit.
This commit is contained in:
@@ -273,10 +273,12 @@ iterator listPackages(filter: PackageFilter): tuple[name, url: string] =
|
||||
|
||||
proc testBabelPackages(r: var TResults, cat: Category, filter: PackageFilter) =
|
||||
if babelExe == "":
|
||||
quit("Cannot run babel tests: Babel binary not found.", quitFailure)
|
||||
echo("[Warning] - Cannot run babel tests: Babel binary not found.")
|
||||
return
|
||||
|
||||
if execCmd("$# update" % babelExe) == quitFailure:
|
||||
quit("Cannot run babel tests: Babel update failed.")
|
||||
echo("[Warning] - Cannot run babel tests: Babel update failed.")
|
||||
return
|
||||
|
||||
for name, url in listPackages(filter):
|
||||
var test = makeTest(name, "", cat)
|
||||
|
||||
Reference in New Issue
Block a user