testament: apply skip to hard-coded categories (#11168)

* testament: apply skip to hard-coded categories

* allow disabling megatest
This commit is contained in:
Jacek Sieka 2019-05-08 04:35:13 -06:00 • committed by Andreas Rumpf
commit 3d9269195f
3 changed files with 56 additions and 29 deletions

View file

@ -7,13 +7,15 @@
# distribution, for details about the copyright.
#
import parseutils, strutils, os, osproc, streams, parsecfg
import sequtils, parseutils, strutils, os, osproc, streams, parsecfg
var compilerPrefix* = findExe("nim")
let isTravis* = existsEnv("TRAVIS")
let isAppVeyor* = existsEnv("APPVEYOR")
var skips*: seq[string]
type
TTestAction* = enum
actionRun = "run"
@ -245,3 +247,6 @@ proc parseSpec*(filename: string): TSpec =
of cfgEof:
break
close(p)
if skips.anyIt(it in result.file):
result.err = reDisabled