File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
resources/checks_unlisted Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 88#
99import os
1010import signal
11+ import time
1112
1213import reframe as rfm
1314import reframe .utility .sanity as sn
@@ -24,6 +25,7 @@ def __init__(self):
2425 self .tags = {type (self ).__name__ }
2526 self .maintainers = ['TM' ]
2627
27- @rfm .run_after ('run' )
28- def kill (self ):
28+ def run (self ):
29+ super ().run ()
30+ time .sleep (0.5 )
2931 os .kill (os .getpid (), signal .SIGTERM )
Original file line number Diff line number Diff line change 66import collections
77import itertools
88import os
9- import multiprocessing
109import pytest
1110import time
1211import tempfile
@@ -269,6 +268,7 @@ def test_sigterm(self):
269268 match = 'received TERM signal' ):
270269 self .runall (checks )
271270
271+ self .assert_all_dead ()
272272 assert self .runner .stats .num_cases () == 1
273273 assert len (self .runner .stats .failures ()) == 1
274274
You can’t perform that action at this time.
0 commit comments