diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-06-24 04:01:15 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-06-24 04:01:15 +0100 |
commit | 72420358be128640dd09a0914a8d88b50c152545 (patch) | |
tree | e6f99f0b3785b9a8ae6c70a939808086cb06ca86 /test/test_share_chroot.py | |
parent | 1e3f7808b1091d76b80369a93f0361453247f368 (diff) | |
download | unit-72420358be128640dd09a0914a8d88b50c152545.tar.gz unit-72420358be128640dd09a0914a8d88b50c152545.tar.bz2 |
Tests: chroot test with permissions skipped under root.
Diffstat (limited to 'test/test_share_chroot.py')
-rw-r--r-- | test/test_share_chroot.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_share_chroot.py b/test/test_share_chroot.py index 7e53d3f7..02b3657d 100644 --- a/test/test_share_chroot.py +++ b/test/test_share_chroot.py @@ -44,7 +44,10 @@ class TestShareChroot(TestApplicationProto): assert self.get(url='/index.html')['status'] == 403, 'chroot 403 2' assert self.get(url='/file')['status'] == 403, 'chroot 403' - def test_share_chroot_permission(self, temp_dir): + def test_share_chroot_permission(self, is_su, temp_dir): + if is_su: + pytest.skip('does\'t work under root') + os.chmod(temp_dir + '/assets/dir', 0o100) assert 'success' in self.conf( |