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:
Varriount
2014-03-04 10:10:00 -05:00
parent af31f19ebb
commit ab0fea9199

View File

@@ -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)