testament: apply skip to hard-coded categories (#11168)
* testament: apply skip to hard-coded categories * allow disabling megatest
This commit is contained in:
parent
1e89e5bf9c
commit
3d9269195f
3 changed files with 56 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue