diff options
author | Radek Novacek <rnovacek@redhat.com> | 2014-05-15 10:53:08 +0200 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2014-05-19 10:16:36 +0200 |
commit | 381f0b148f653580ec695ff2c0e09f90dd830abf (patch) | |
tree | 1a0cd5220fb72ae092924d61ab697fc0e8fc5c8f | |
parent | b88c9f32da204d277bb56ddfd79bac384bb1bcb0 (diff) | |
download | openlmi-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.py | 2 |
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 |