diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-10-06 20:30:51 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-10-06 20:30:51 +0100 |
commit | 37390d2a3be3646ad5a4c52d46ce93fc8f8a416b (patch) | |
tree | f2d02f181ffea5bf3e513b7408bbb73430071917 /test/test_ruby_isolation.py | |
parent | 703d79042b8dd161e7c53d485b90af2b926148e6 (diff) | |
download | unit-37390d2a3be3646ad5a4c52d46ce93fc8f8a416b.tar.gz unit-37390d2a3be3646ad5a4c52d46ce93fc8f8a416b.tar.bz2 |
Tests: fixed tests to run as root.
Diffstat (limited to 'test/test_ruby_isolation.py')
-rw-r--r-- | test/test_ruby_isolation.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/test_ruby_isolation.py b/test/test_ruby_isolation.py index be20300e..e88c60b2 100644 --- a/test/test_ruby_isolation.py +++ b/test/test_ruby_isolation.py @@ -33,15 +33,9 @@ class TestRubyIsolation(TestApplicationRuby): if not 'unprivileged_userns_clone' in isolation_features: pytest.skip('requires unprivileged userns or root') - os.mkdir(self.temp_dir + '/ruby') - - shutil.copytree( - option.test_dir + '/ruby/status_int', - self.temp_dir + '/ruby/status_int', - ) isolation = { 'namespaces': {'credential': not is_su, 'mount': True}, - 'rootfs': self.temp_dir, + 'rootfs': option.test_dir, } self.load('status_int', isolation=isolation) |