summaryrefslogtreecommitdiffhomepage
path: root/test/test_java_isolation_rootfs.py
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-11-16 20:37:01 +0300
committerMax Romanov <max.romanov@nginx.com>2020-11-16 20:37:01 +0300
commit567f0a7b3049f4532524ac35cb232cbeedb868bf (patch)
tree8a2eb4f43b5750c6e4fa47d7278a0b2e6e9508ce /test/test_java_isolation_rootfs.py
parent6d2b60ff3e6f905b81c6d2fc6595b39250e3a586 (diff)
downloadunit-567f0a7b3049f4532524ac35cb232cbeedb868bf.tar.gz
unit-567f0a7b3049f4532524ac35cb232cbeedb868bf.tar.bz2
Tests: fixing tests interrupt in terminal.
KeyboardInterrupt re-raised.
Diffstat (limited to 'test/test_java_isolation_rootfs.py')
-rw-r--r--test/test_java_isolation_rootfs.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_java_isolation_rootfs.py b/test/test_java_isolation_rootfs.py
index 4f9e9834..02d35a62 100644
--- a/test/test_java_isolation_rootfs.py
+++ b/test/test_java_isolation_rootfs.py
@@ -31,8 +31,11 @@ class TestJavaIsolationRootfs(TestApplicationJava):
process.communicate()
+ except KeyboardInterrupt:
+ raise
+
except:
- pytest.fail('Cann\'t run mount process.')
+ pytest.fail('Can\'t run mount process.')
def teardown_method(self, is_su):
if not is_su:
@@ -46,8 +49,11 @@ class TestJavaIsolationRootfs(TestApplicationJava):
process.communicate()
+ except KeyboardInterrupt:
+ raise
+
except:
- pytest.fail('Cann\'t run mount process.')
+ pytest.fail('Can\'t run mount process.')
def test_java_isolation_rootfs_chroot_war(self, is_su, temp_dir):
if not is_su: