@@ -81,70 +81,76 @@ def test_runall(self):
8181 self .runall (self .checks )
8282
8383 stats = self .runner .stats
84- self .assertEqual (7 , stats .num_cases ())
84+ self .assertEqual (8 , stats .num_cases ())
8585 self .assertRunall ()
86- self .assertEqual (4 , len (stats .failures ()))
86+ self .assertEqual (5 , len (stats .failures ()))
8787 self .assertEqual (2 , self ._num_failures_stage ('setup' ))
8888 self .assertEqual (1 , self ._num_failures_stage ('sanity' ))
8989 self .assertEqual (1 , self ._num_failures_stage ('performance' ))
90+ self .assertEqual (1 , self ._num_failures_stage ('cleanup' ))
9091
9192 def test_runall_skip_system_check (self ):
9293 self .runall (self .checks , skip_system_check = True )
9394
9495 stats = self .runner .stats
95- self .assertEqual (8 , stats .num_cases ())
96+ self .assertEqual (9 , stats .num_cases ())
9697 self .assertRunall ()
97- self .assertEqual (4 , len (stats .failures ()))
98+ self .assertEqual (5 , len (stats .failures ()))
9899 self .assertEqual (2 , self ._num_failures_stage ('setup' ))
99100 self .assertEqual (1 , self ._num_failures_stage ('sanity' ))
100101 self .assertEqual (1 , self ._num_failures_stage ('performance' ))
102+ self .assertEqual (1 , self ._num_failures_stage ('cleanup' ))
101103
102104 def test_runall_skip_prgenv_check (self ):
103105 self .runall (self .checks , skip_environ_check = True )
104106
105107 stats = self .runner .stats
106- self .assertEqual (8 , stats .num_cases ())
108+ self .assertEqual (9 , stats .num_cases ())
107109 self .assertRunall ()
108- self .assertEqual (4 , len (stats .failures ()))
110+ self .assertEqual (5 , len (stats .failures ()))
109111 self .assertEqual (2 , self ._num_failures_stage ('setup' ))
110112 self .assertEqual (1 , self ._num_failures_stage ('sanity' ))
111113 self .assertEqual (1 , self ._num_failures_stage ('performance' ))
114+ self .assertEqual (1 , self ._num_failures_stage ('cleanup' ))
112115
113116 def test_runall_skip_sanity_check (self ):
114117 self .runner .policy .skip_sanity_check = True
115118 self .runall (self .checks )
116119
117120 stats = self .runner .stats
118- self .assertEqual (7 , stats .num_cases ())
121+ self .assertEqual (8 , stats .num_cases ())
119122 self .assertRunall ()
120- self .assertEqual (3 , len (stats .failures ()))
123+ self .assertEqual (4 , len (stats .failures ()))
121124 self .assertEqual (2 , self ._num_failures_stage ('setup' ))
122125 self .assertEqual (0 , self ._num_failures_stage ('sanity' ))
123126 self .assertEqual (1 , self ._num_failures_stage ('performance' ))
127+ self .assertEqual (1 , self ._num_failures_stage ('cleanup' ))
124128
125129 def test_runall_skip_performance_check (self ):
126130 self .runner .policy .skip_performance_check = True
127131 self .runall (self .checks )
128132
129133 stats = self .runner .stats
130- self .assertEqual (7 , stats .num_cases ())
134+ self .assertEqual (8 , stats .num_cases ())
131135 self .assertRunall ()
132- self .assertEqual (3 , len (stats .failures ()))
136+ self .assertEqual (4 , len (stats .failures ()))
133137 self .assertEqual (2 , self ._num_failures_stage ('setup' ))
134138 self .assertEqual (1 , self ._num_failures_stage ('sanity' ))
135139 self .assertEqual (0 , self ._num_failures_stage ('performance' ))
140+ self .assertEqual (1 , self ._num_failures_stage ('cleanup' ))
136141
137142 def test_strict_performance_check (self ):
138143 self .runner .policy .strict_check = True
139144 self .runall (self .checks )
140145
141146 stats = self .runner .stats
142- self .assertEqual (7 , stats .num_cases ())
147+ self .assertEqual (8 , stats .num_cases ())
143148 self .assertRunall ()
144- self .assertEqual (5 , len (stats .failures ()))
149+ self .assertEqual (6 , len (stats .failures ()))
145150 self .assertEqual (2 , self ._num_failures_stage ('setup' ))
146151 self .assertEqual (1 , self ._num_failures_stage ('sanity' ))
147152 self .assertEqual (2 , self ._num_failures_stage ('performance' ))
153+ self .assertEqual (1 , self ._num_failures_stage ('cleanup' ))
148154
149155 def test_force_local_execution (self ):
150156 self .runner .policy .force_local = True
0 commit comments