Skip to content

Commit

Permalink
Merge pull request autotest#5303 from smitterl/improve_pkg_removal
Browse files Browse the repository at this point in the history
daemon/remove_pkgs: improve logging
  • Loading branch information
chloerh authored Nov 29, 2023
2 parents 9bde884 + 5e8f898 commit cdbe7f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libvirt/tests/src/daemon/check_daemon_after_remove_pkgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def run(test, params, env):
test.error("Failed to remove libvirt packages on guest")

for daemon in daemons:
cmd = "systemctl -a | grep %s | grep -v not-found" % daemon
if not session.cmd_status(cmd):
err, out = session.cmd_status_output("systemctl -a| grep %s" % daemon)
LOGGER.debug(out)
if err or daemon in out and "not-found" not in out:
test.fail("%s still exists after removing libvirt pkgs" % daemon)

finally:
Expand Down

0 comments on commit cdbe7f9

Please sign in to comment.