File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -259,29 +259,32 @@ public:
259259 return ;
260260 }
261261
262+ // Only rerun tests if a fewer then eight of the tests fail.
263+ eightOfTests := total / 8 ;
264+
262265 info(" :: Rerunning failed test(s)." );
263266
264267 if (settings.noRerunTests) {
265268 info(" \t Rerunning tests disabled by arguments or settings" );
266269 }
267270
268- if ((total / 8 ) > (bad - inc)) {
271+ if (eightOfTests > (bad - inc)) {
269272 mask |= 1u << Result.Fail;
270273 mask |= 1u << Result.InternalError;
271274 } else {
272- info(" \t To many failing tests %s" , bad);
275+ info(" \t To many failing tests %s, not rerunning. " , bad);
273276 }
274277
275- if ((total / 8 ) > inc) {
278+ if (eightOfTests > inc) {
276279 mask |= 1u << Result.Incomplete;
277280 mask |= 1u << Result.BadTerminate;
278281 mask |= 1u << Result.BadTerminatePass;
279282 } else {
280- info(" \t To many incomplete tests %s" , inc);
283+ info(" \t To many incomplete tests %s, not rerunning. " , inc);
281284 }
282285
283286 if (mask == 0 ) {
284- info(" \t Not rerunning any tests as there are to many." );
287+ info(" \t Not rerunning any tests as there are to many failing or incomplete ." );
285288 return ;
286289 }
287290
You can’t perform that action at this time.
0 commit comments