diff options
author | Varriount <Varriount@users.noreply.github.com> | 2014-03-04 10:10:00 -0500 |
---|---|---|
committer | Varriount <Varriount@users.noreply.github.com> | 2014-03-04 10:10:00 -0500 |
commit | ab0fea919900be21c0872d1932a4ef90dd440a42 (patch) | |
tree | 257ae9e7566974722ea0c613ac7880530765de1d | |
parent | af31f19ebbb042c4ff5c490df9b53f74bab520f3 (diff) | |
download | Nim-ab0fea919900be21c0872d1932a4ef90dd440a42.tar.gz |
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.
-rw-r--r-- | tests/testament/categories.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index 627c3d5ea..9bb4838e0 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -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) |