important_packages: allowed_failures batch (#17757)

* important_packages: reserve batch 0 for allowed failures

* custom batch name: allowed_failures
This commit is contained in:
Timothee Cour 2021-04-20 00:02:35 -07:00 • committed by GitHub
commit 68e7ed9c57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 12 deletions

View file

@ -692,7 +692,7 @@ proc main() =
quit Usage
of "batch":
testamentData0.batchArg = p.val
if p.val != "_":
if p.val != "_" and p.val.len > 0 and p.val[0] in {'0'..'9'}:
let s = p.val.split("_")
doAssert s.len == 2, $(p.val, s)
testamentData0.testamentBatch = s[0].parseInt