29c29 < def test_php_isolation_rootfs(self, is_su): --- > def test_php_isolation_rootfs(self, is_su, temp_dir): 32,34d31 < if 'mnt' not in isolation_features: < pytest.skip('requires mnt ns') < 36,38d32 < if 'user' not in isolation_features: < pytest.skip('requires unprivileged userns or root') < 42,45c36,37 < isolation = { < 'namespaces': {'credential': not is_su, 'mount': True}, < 'rootfs': option.test_dir, < } --- > if 'user' not in isolation_features: > pytest.skip('user namespace is not supported') 46a39,53 > if 'mnt' not in isolation_features: > pytest.skip('mnt namespace is not supported') > > if 'pid' not in isolation_features: > pytest.skip('pid namespace is not supported') > > isolation = {'rootfs': temp_dir} > > if not is_su: > isolation['namespaces'] = { > 'mount': True, > 'credential': True, > 'pid': True > } > 50c57 < '"/php/phpinfo"', 'applications/phpinfo/root' --- > '"/app/php/phpinfo"', 'applications/phpinfo/root' 53c60 < '"/php/phpinfo"', 'applications/phpinfo/working_directory' --- > '"/app/php/phpinfo"', 'applications/phpinfo/working_directory' 58c65 < def test_php_isolation_rootfs_extensions(self, is_su): --- > def test_php_isolation_rootfs_extensions(self, is_su, temp_dir): 62,64d68 < if 'user' not in isolation_features: < pytest.skip('requires unprivileged userns or root') < 67a72,74 > if 'user' not in isolation_features: > pytest.skip('user namespace is not supported') > 69c76 < pytest.skip('requires mnt ns') --- > pytest.skip('mnt namespace is not supported') 71,74c78,79 < isolation = { < 'rootfs': option.test_dir, < 'namespaces': {'credential': not is_su, 'mount': not is_su}, < } --- > if 'pid' not in isolation_features: > pytest.skip('pid namespace is not supported') 75a81,89 > isolation = {'rootfs': temp_dir} > > if not is_su: > isolation['namespaces'] = { > 'mount': True, > 'credential': True, > 'pid': True > } > 79c93 < '"/php/list-extensions"', 'applications/list-extensions/root' --- > '"/app/php/list-extensions"', 'applications/list-extensions/root' 88c102 < '"/php/list-extensions"', --- > '"/app/php/list-extensions"',