Skip to content

Commit 9b5a8e7

Browse files
committed
Cleanup in AsynProcess test
1 parent 080b9a5 commit 9b5a8e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/framework/asyncprocess.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@author: Toon Willems (Ghent University)
2929
"""
3030

31+
import subprocess
3132
import sys
3233
import time
3334
from test.framework.utilities import EnhancedTestCase
@@ -62,6 +63,11 @@ def runTest(self):
6263

6364
def tearDown(self):
6465
"""cleanup"""
66+
try:
67+
# Terminate subprocess
68+
self.shell.communicate(timeout=1)
69+
except subprocess.TimeoutExpired:
70+
pass
6571
super(AsyncProcessTest, self).tearDown()
6672

6773

0 commit comments

Comments
 (0)