Browse Source

[3056] Skip another test for root user

Mukund Sivaraman 11 years ago
parent
commit
473c1e672a
1 changed files with 2 additions and 0 deletions
  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
         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):
         """
         Test some combinations of correct and bad permissions.