1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 15:45:08 +01:00

test: Fix PODMAN_BATS_LEAK_CHECK

This variable is set by hack/bats and it fails if PODMAN_CMD is unset.

Signed-off-by: Ricardo Branco <rbranco@suse.de>
This commit is contained in:
Ricardo Branco
2025-12-25 19:06:22 +01:00
parent 2fbecb48e1
commit 8d3ac1a1f6

View File

@@ -251,6 +251,9 @@ function defer-assertion-failures() {
function basic_teardown() {
echo "# [teardown]" >&2
PODMAN_CMD=("${PODMAN}")
add_podman_args PODMAN_CMD
# Free any ports reserved by our test
if [[ -d $PORT_LOCK_DIR ]]; then
mylocks=$(grep -wlr $BATS_SUITE_TEST_NUMBER $PORT_LOCK_DIR || true)