summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2014-05-15 10:53:08 +0200
committerRadek Novacek <rnovacek@redhat.com>2014-05-19 10:16:36 +0200
commit381f0b148f653580ec695ff2c0e09f90dd830abf (patch)
tree1a0cd5220fb72ae092924d61ab697fc0e8fc5c8f
parentb88c9f32da204d277bb56ddfd79bac384bb1bcb0 (diff)
downloadopenlmi-providers-381f0b148f653580ec695ff2c0e09f90dd830abf.tar.gz
openlmi-providers-381f0b148f653580ec695ff2c0e09f90dd830abf.tar.xz
openlmi-providers-381f0b148f653580ec695ff2c0e09f90dd830abf.zip
test base: use service instead of systemctl command
service command is compatible even with non-systemd distribution and still works with systemd.
-rw-r--r--src/python/lmi/test/cimbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/lmi/test/cimbase.py b/src/python/lmi/test/cimbase.py
index 4582d8e..a1fbb2c 100644
--- a/src/python/lmi/test/cimbase.py
+++ b/src/python/lmi/test/cimbase.py
@@ -366,7 +366,7 @@ class CIMTestCase(base.BaseLmiTestCase):
"""
Restart CIMOM
"""
- ret = self.log_run(["systemctl", "restart", self.cimom])
+ ret = self.log_run(["service", self.cimom, "restart"])
time.sleep(1)
if ret == 0:
CIMTestCase._WBEMCONNECTION = None