summaryrefslogtreecommitdiff
path: root/test/upgrade/helpers.bash
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-09-08 18:29:24 +0200
committerPaul Holzinger <pholzing@redhat.com>2021-09-09 10:26:29 +0200
commit4d9dcab0cf94e30f8e4ca041be1d2bdc710f1ba6 (patch)
tree6d5a59f034fc07c0f0e8341cbe54496c6f77bee8 /test/upgrade/helpers.bash
parent26c8549ae3d4f5c3742d006e40a51080d5ae0746 (diff)
downloadpodman-4d9dcab0cf94e30f8e4ca041be1d2bdc710f1ba6.tar.gz
podman-4d9dcab0cf94e30f8e4ca041be1d2bdc710f1ba6.tar.bz2
podman-4d9dcab0cf94e30f8e4ca041be1d2bdc710f1ba6.zip
podman upgrade tests for networking
Test basic networking functionality in the upgrade tests. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/upgrade/helpers.bash')
-rw-r--r--test/upgrade/helpers.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/upgrade/helpers.bash b/test/upgrade/helpers.bash
index 41d9279e6..16fedb053 100644
--- a/test/upgrade/helpers.bash
+++ b/test/upgrade/helpers.bash
@@ -9,3 +9,11 @@ setup() {
teardown() {
:
}
+
+# skip a test when the given version is older than the currently tested one
+skip_if_version_older() {
+ # use ${PODMAN_UPGRADE_FROM##v} to trim the leading "v"
+ if printf '%s\n%s\n' "${PODMAN_UPGRADE_FROM##v}" "$1" | sort --check=quiet --version-sort; then
+ skip "${2-test is only meaningful when upgrading from $1 or later}"
+ fi
+}