Skip to content

Commit

Permalink
test: HACK: Kill leaked conmon processes in teardown
Browse files Browse the repository at this point in the history
TestApplication.testRunImageSystem leaks conmon processes when opening
the Console of busybox-without-publish. This isn't obvious to reproduce
on the CLI (a simple `podman exec -it` doesn't do that), the opening of
our cockpit channel via the podman API does something special here.

We've had this hack for a while already. But move this into a separate
commit so that we can revert it more easily eventually.
  • Loading branch information
martinpitt committed Feb 29, 2024
1 parent c8e0750 commit 67200a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ class TestApplication(testlib.MachineCase):
podman system reset --force
"""

# HACK: TestApplication.testRunImageSystem leaks conmon processes when opening the Console of
# busybox-without-publish; TODO: reproduce on CLI (hard!) and file bug
CLEANUP += """pkill -u "$(id -u)" -e -9 conmon || true
while pgrep -u "$(id -u)" conmon; do sleep 0.1; done
"""

# assert that this worked properly
CLEANUP_CHECK = """! pgrep -a -u "$(id -u)" podman
! pgrep -a -u "$(id -u)" conmon
Expand Down

0 comments on commit 67200a5

Please sign in to comment.