Parcourir la source

[3056] Skip another test for root user

Mukund Sivaraman il y a 12 ans
Parent
commit
473c1e672a
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/bin/cmdctl/tests/b10-certgen_test.py

+ 2 - 0
src/bin/cmdctl/tests/b10-certgen_test.py

@@ -200,6 +200,8 @@ class TestCertGenTool(unittest.TestCase):
         # No such file
         # No such file
         self.run_check(105, None, None, [self.TOOL, '-c', 'foo'])
         self.run_check(105, None, None, [self.TOOL, '-c', 'foo'])
 
 
+    @unittest.skipIf(os.getuid() == 0,
+                     'test cannot be run as root user')
     def test_permissions(self):
     def test_permissions(self):
         """
         """
         Test some combinations of correct and bad permissions.
         Test some combinations of correct and bad permissions.