Skip to content

Commit 0730f66

Browse files
author
Theofilos Manitaras
committed
Address PR comments
1 parent ccaa108 commit 0730f66

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

unittests/resources/checks_unlisted/selfkill.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
import os
1010
import signal
11+
import time
1112

1213
import reframe as rfm
1314
import 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)

unittests/test_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import collections
77
import itertools
88
import os
9-
import multiprocessing
109
import pytest
1110
import time
1211
import 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

0 commit comments

Comments
 (0)