You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/salt/files/salt-2015.5.1-skip-libvirt-...

21 lines
598 B

diff --git a/tests/unit/states/libvirt_test.py b/tests/unit/states/libvirt_test.py
index ec09542..477e5c3 100644
--- a/tests/unit/states/libvirt_test.py
+++ b/tests/unit/states/libvirt_test.py
@@ -4,6 +4,7 @@
'''
# Import Python libs
from __future__ import absolute_import
+import os
# Import Salt Testing Libs
from salttesting import skipIf, TestCase
@@ -27,6 +28,7 @@ libvirt.__opts__ = {}
@skipIf(NO_MOCK, NO_MOCK_REASON)
+@skipIf(os.geteuid() != 0, 'You must be logged in as root to run this test')
class LibvirtTestCase(TestCase):
'''
Test cases for salt.states.libvirt