On 03/07/2013 03:05 AM, 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:
LGTM also. I think we can consider this a bugfix, since it's broken on
F18. I'll push it into next. Thanks!
--
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel