Skip to content

Commit

Permalink
XX test bringing back setup cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Feb 29, 2024
1 parent 7955398 commit 6c4434a
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 @@ -102,6 +102,12 @@ class TestApplication(testlib.MachineCase):

# clean slate, and install our test images
INIT = """for img in /var/lib/test-images/*.tar; do podman load < "$img"; done
pkill -e -9 podman || true
while pgrep podman; do sleep 0.1; done
pkill -e -9 conmon || true
while pgrep conmon; do sleep 0.1; done
findmnt --list -otarget | grep /var/lib/containers/. | xargs -r umount
sync
systemctl {user} --now enable podman.socket"""
m.execute(INIT.format(user=""))

Expand Down

0 comments on commit 6c4434a

Please sign in to comment.