From b41aaa9972431fcfe965b8404ed6e892f041ceea Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Mon, 14 Jul 2025 12:30:16 -0400 Subject: [PATCH] [v4.4.1-rhel] Add conditional release-checking system test Unfortunately on a number of occasions, Podman has been released officially with a `-dev` suffix in the version number. Assist in catching this mistake at release time by the addition of a simple conditional test. Note that it must be positively enabled by a magic env. var. before executing the system tests. Ref. original PR: https://github.com/containers/podman/pull/26540 Signed-off-by: Chris Evich --- test/system/001-basic.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats index 2f7f0966ca..f7c97e1266 100644 --- a/test/system/001-basic.bats +++ b/test/system/001-basic.bats @@ -245,4 +245,13 @@ run_podman --noout system connection ls is "${lines[-1]}" ".*Shutting down engines" } +@test "release" { + [[ "${RELEASE_TESTING:-false}" == "true" ]] || \ + skip "Release testing may be enabled by setting \$RELEASE_TESTING = 'true'." + + run_podman --version + + assert "$output" "!~" "dev" "The Podman version string does not mention 'dev'." +} + # vim: filetype=sh