mirror of
https://github.com/containers/podman.git
synced 2025-10-12 16:56:32 +08:00
[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:
@ -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
|
||||
|
Reference in New Issue
Block a user