make testament isSuccess more robust and allow tests with --hints:off to succeed (#17968)

* fix testament isSuccess

* show givenSpec in addResult

* simplify tstatictypes.nim
This commit is contained in:
Timothee Cour 2021-05-10 21:54:52 -07:00 • committed by GitHub
commit f68f28d157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 11 deletions

View file

@ -99,6 +99,7 @@ type
timeout*: float # in seconds, fractions possible,
# but don't rely on much precision
inlineErrors*: seq[InlineError] # line information to error message
debugInfo*: string # debug info to give more context
proc getCmd*(s: TSpec): string =
if s.cmd.len == 0: