summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_config/tests/test_cfg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/oslo_config/tests/test_cfg.py b/oslo_config/tests/test_cfg.py
index 16ec21d..ec2791e 100644
--- a/oslo_config/tests/test_cfg.py
+++ b/oslo_config/tests/test_cfg.py
@@ -21,6 +21,7 @@ import os
import shutil
import sys
import tempfile
+import unittest
from unittest import mock
import fixtures
@@ -3839,6 +3840,8 @@ class SadPathTestCase(BaseTestCase):
self.assertRaises(cfg.ConfigFilesNotFoundError,
self.conf, ['--config-file', path])
+ @unittest.skipIf(os.getuid() == 0,
+ "Not supported with the root privileges")
def test_conf_file_permission_denied(self):
(fd, path) = tempfile.mkstemp()