mirror of
https://github.com/containers/podman.git
synced 2026-02-05 06:45:31 +01:00
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. Also (thanks to @lsm5) update the TMT test to trigger the new condition for future Fedora releases. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@@ -280,4 +280,13 @@ run_podman --noout system connection ls
|
||||
is "$output" ".*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
|
||||
|
||||
@@ -14,6 +14,9 @@ adjust+:
|
||||
- when: distro == rhel
|
||||
environment+:
|
||||
ROOTLESS_USER: "cloud-user"
|
||||
- when: initiator != "packit"
|
||||
environment+:
|
||||
RELEASE_TESTING: true
|
||||
|
||||
/local-root:
|
||||
tag: [ local, root ]
|
||||
|
||||
Reference in New Issue
Block a user