File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 19
19
password = 'pass'
20
20
port = 38028
21
21
22
+ class TestFilter :
23
+ _suites = ['props' ]
24
+ _skipping = True
25
+
26
+ def skipLine (self , line ):
27
+ if line .startswith ("<- summary" ):
28
+ self ._skipping = False
29
+ else :
30
+ for suite in self ._suites :
31
+ if line .startswith (f"-> running `{ suite } " ):
32
+ self ._skipping = True
33
+ break
34
+ return self ._skipping
22
35
23
36
class Test (unittest .TestCase ):
24
37
def setUp (self ):
@@ -69,9 +82,12 @@ def test_run_litmus(self):
69
82
results = ex .output
70
83
lines = results .decode ().split ('\n ' )
71
84
assert len (lines ), "No litmus output"
85
+ filter = TestFilter ()
72
86
for line in lines :
73
87
line = line .split ('\r ' )[- 1 ]
74
88
result .append (line )
89
+ if filter .skipLine (line ):
90
+ continue
75
91
if len (re .findall (r'^ *\d+\.' , line )):
76
92
assert line .endswith ('pass' ), line
77
93
@@ -104,9 +120,12 @@ def test_run_litmus_noauth(self):
104
120
results = ex .output
105
121
lines = results .decode ().split ('\n ' )
106
122
assert len (lines ), "No litmus output"
123
+ filter = TestFilter ()
107
124
for line in lines :
108
125
line = line .split ('\r ' )[- 1 ]
109
126
result .append (line )
127
+ if filter .skipLine (line ):
128
+ continue
110
129
if len (re .findall (r'^ *\d+\.' , line )):
111
130
assert line .endswith ('pass' ), line
112
131
You can’t perform that action at this time.
0 commit comments