On 03/07/2013 04:05 PM, Yanbing Du wrote:
Update search key word from "pid" to "running" to avoid check fail
if host running systemd.
Signed-off-by: Yanbing Du<[email protected]>
---
virttest/libvirt_vm.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/virttest/libvirt_vm.py b/virttest/libvirt_vm.py
index bf039ee..9cf9cdc 100644
--- a/virttest/libvirt_vm.py
+++ b/virttest/libvirt_vm.py
@@ -71,7 +71,7 @@ def service_libvirtd_control(action):
return False
elif action == "status":
cmd_result = utils.run("service libvirtd status", ignore_status=True)
- if re.search("pid", cmd_result.stdout.strip()):
+ if re.search("running", cmd_result.stdout.strip()):
logging.info("Libvirtd service is running")
return True
else:
Yes, it's "PID" not lower case "pid" on Fedora18 or RHEL7.0, and the
"running" string should
be common on kinds of OS platform, so ACK.
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel