blob: acb8a091ac4839bb8294d36887e1a4e5f7789e0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|