Update categories.nim
Fixed the tester from crashing when the babel package file is invalid.
This commit is contained in:
parent
13542572ab
commit
370f06d557
1 changed files with 26 additions and 19 deletions
|
|
@ -282,6 +282,8 @@ proc testBabelPackages(r: var TResults, cat: Category, filter: PackageFilter) =
|
|||
echo("[Warning] - Cannot run babel tests: Babel update failed.")
|
||||
return
|
||||
|
||||
let packageFileTest = makeTest("PackageFileParsed", "", cat)
|
||||
try:
|
||||
for name, url in listPackages(filter):
|
||||
var test = makeTest(name, "", cat)
|
||||
echo(url)
|
||||
|
|
@ -302,6 +304,11 @@ proc testBabelPackages(r: var TResults, cat: Category, filter: PackageFilter) =
|
|||
if buildStatus != quitSuccess:
|
||||
r.addResult(test, "", "", reBuildFailed)
|
||||
r.addResult(test, "", "", reSuccess)
|
||||
r.addResult(packageFileTest, "", "", reSuccess)
|
||||
except EJsonParsingError:
|
||||
echo("[Warning] - Cannot run babel tests: Invalid package file.")
|
||||
r.addResult(packageFileTest, "", "", reBuildFailed)
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue