File tree 1 file changed +7
-6
lines changed
mmengine/testing/_internal
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -351,12 +351,13 @@ def _check_return_codes(self, elapsed_time) -> None:
351
351
if first_process .exitcode == skip .exit_code :
352
352
raise unittest .SkipTest (skip .message )
353
353
354
- # Skip the unittest since the raised error maybe not caused by
355
- # the tested function. For example, in CI environment, the tested
356
- # method could be terminated by system signal for the limited
357
- # resources.
358
- self .skipTest (f'Skip test { self ._testMethodName } due to '
359
- 'the program abort' )
354
+ if first_process .exitcode != 0 :
355
+ # Skip the unittest since the raised error maybe not caused by
356
+ # the tested function. For example, in CI environment, the tested
357
+ # method could be terminated by system signal for the limited
358
+ # resources.
359
+ self .skipTest (f'Skip test { self ._testMethodName } due to '
360
+ 'the program abort' )
360
361
361
362
@property
362
363
def is_master (self ) -> bool :
You can’t perform that action at this time.
0 commit comments