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': temp_dir, < } --- > if 'user' not in isolation_features: > pytest.skip('user namespace is not supported') 47c39,40 < self.load('empty', isolation=isolation) --- > if 'mnt' not in isolation_features: > pytest.skip('mnt namespace is not supported') 49c42,43 < assert self.get()['status'] == 200, 'python rootfs' --- > if 'pid' not in isolation_features: > pytest.skip('pid namespace is not supported') 50a45,53 > isolation = {'rootfs': temp_dir} > > if not is_su: > isolation['namespaces'] = { > 'mount': True, > 'credential': True, > 'pid': True > } > 60c63 < == False --- > == True 81,83d83 < if 'mnt' not in isolation_features: < pytest.skip('requires mnt ns') < 85,87d84 < if 'user' not in isolation_features: < pytest.skip('requires unprivileged userns or root') < 90a88,96 > if 'user' not in isolation_features: > pytest.skip('user namespace is not supported') > > 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') > 92d97 < 'namespaces': {'credential': not is_su, 'mount': True}, 96a102,108 > if not is_su: > isolation['namespaces'] = { > 'mount': True, > 'credential': True, > 'pid': True > } >