summaryrefslogtreecommitdiffhomepage
path: root/test/test_ruby_isolation.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2023-05-25 16:56:14 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2023-05-25 16:56:14 +0100
commit0132e552d0b9e8b724015728b5fbd7dad9d2edcb (patch)
treea24bd7e26e99e1b99b3d7ec806fb478c2388fd5e /test/test_ruby_isolation.py
parent18fcc07c7796889fe1cc4bc86564459ccd387ae7 (diff)
downloadunit-0132e552d0b9e8b724015728b5fbd7dad9d2edcb.tar.gz
unit-0132e552d0b9e8b724015728b5fbd7dad9d2edcb.tar.bz2
Tests: "temp_dir" fixture used were possible.
Diffstat (limited to 'test/test_ruby_isolation.py')
-rw-r--r--test/test_ruby_isolation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ruby_isolation.py b/test/test_ruby_isolation.py
index ea208523..3ec06d86 100644
--- a/test/test_ruby_isolation.py
+++ b/test/test_ruby_isolation.py
@@ -6,7 +6,7 @@ from unit.option import option
class TestRubyIsolation(TestApplicationRuby):
prerequisites = {'modules': {'ruby': 'any'}, 'features': ['isolation']}
- def test_ruby_isolation_rootfs(self, is_su):
+ def test_ruby_isolation_rootfs(self, is_su, temp_dir):
isolation_features = option.available['features']['isolation'].keys()
if not is_su:
@@ -22,7 +22,7 @@ class TestRubyIsolation(TestApplicationRuby):
if 'pid' not in isolation_features:
pytest.skip('pid namespace is not supported')
- isolation = {'rootfs': option.temp_dir}
+ isolation = {'rootfs': temp_dir}
if not is_su:
isolation['namespaces'] = {