Skip to content

Commit

Permalink
Merge pull request #1172 from jferlan/virsh_setmem
Browse files Browse the repository at this point in the history
virsh_setmem: Reduce churn for libvirtd restart
  • Loading branch information
lmr committed Dec 3, 2013
2 parents bc483c2 + 59e0531 commit 1d29232
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libvirt/tests/src/virsh_cmd/domain/virsh_setmem.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ def print_debug_stats(original_inside_mem, original_outside_mem,
# Prepare libvirtd status
if libvirt == "off":
utils_libvirtd.libvirtd_stop()
else: # make sure it's running
utils_libvirtd.libvirtd_restart()
else:
if not utils_libvirtd.libvirtd_is_running() and \
not utils_libvirtd.libvirtd_start():
raise error.TestFail("Cannot start libvirtd")

if status_error == "yes" or old_libvirt_fail == "yes":
logging.info("Error Test: Expecting an error to occur!")
Expand Down

0 comments on commit 1d29232

Please sign in to comment.