error instead of echo when testament category is empty; fix realtimeGC (#16162)
This commit is contained in:
parent
c65f95417a
commit
fd98705680
7 changed files with 32 additions and 47 deletions
|
|
@ -748,7 +748,9 @@ proc processCategory(r: var TResults, cat: Category,
|
|||
testSpec r, test
|
||||
inc testsRun
|
||||
if testsRun == 0:
|
||||
echo "[Warning] - Invalid category specified \"", cat.string, "\", no tests were run"
|
||||
const whiteListedDirs = ["deps"]
|
||||
doAssert cat.string in whiteListedDirs,
|
||||
"Invalid category specified: '$#' not in whilelist: $#" % [cat.string, $whiteListedDirs]
|
||||
|
||||
proc processPattern(r: var TResults, pattern, options: string; simulate: bool) =
|
||||
var testsRun = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue