[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 <cevich@redhat.com>
This commit is contained in:
Chris Evich
2025-07-14 12:30:16 -04:00
parent bdd4a5f15a
commit b41aaa9972

View File

@ -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