test/system: fix up many tests that do not cleanup

All tests should cleanup themselves and not leak stuff.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-06-05 15:16:02 +02:00
parent e9c6cd1559
commit a2352fa3ea
22 changed files with 81 additions and 29 deletions

View File

@@ -217,6 +217,8 @@ load helpers
run_podman inspect --format "{{len .ExecIDs}}" $cid
assert "$output" = "0" ".ExecIDs must be empty"
run_podman rm -f -t0 $cid
}
# 'exec --preserve-fd' passes a list of additional file descriptors into the container
@@ -239,6 +241,8 @@ load helpers
assert "${lines[0]}" !~ [123][0-9] "/proc/self/fd must not contain 10-39"
assert "${lines[1]}" = "fd9" "cat from fd 9"
assert "${lines[2]}" = "$content" "cat from fd 40"
run_podman rm -f -t0 $cid
}
# vim: filetype=sh