error instead of echo when testament category is empty; fix realtimeGC (#16162)

This commit is contained in:
Timothee Cour
2020-12-01 11:34:53 -08:00
committed by GitHub
parent c65f95417a
commit fd98705680
7 changed files with 32 additions and 47 deletions

View File

@@ -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