From f95de0a058cfc643d41e3b85de53675df21adc66 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 23 Apr 2025 16:50:23 +0200 Subject: [PATCH] podman: set PODMAN_TESTING env The system tests need that location in order to use the right binary path from the rpm. ref: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/373 Signed-off-by: Paul Holzinger --- tests/podman.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/podman.pm b/tests/podman.pm index 616bab34..c0b77e50 100644 --- a/tests/podman.pm +++ b/tests/podman.pm @@ -22,6 +22,9 @@ sub run { else { # install podman and run the upstream integration tests assert_script_run "dnf -y install podman podman-tests bats", 600; + # podman system tests use a relative path for podman-testing by default, + # we need to set it to the location where the podman-tests package installs it. + assert_script_run 'export PODMAN_TESTING=/usr/bin/podman-testing'; # needed so we exit 1 when the bats command fails assert_script_run "set -o pipefail"; assert_script_run "bats --filter-tags distro-integration /usr/share/podman/test/system | tee /tmp/podman-bats.txt", 600;