Files
podman/test/upgrade/helpers.bash
Stefano Brivio b3cf836841 test/system: Move network-related helpers to helpers.network.bash
The main helpers.bash file is rather bloated and it's difficult to
find stuff there. Move networking functions to their own helper
file.

While at it, apply a consistent style, and rearrange logically
related functions into sections.

Suggested-by: Ed Santiago <santiago@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-11-08 00:16:36 +01:00

21 lines
488 B
Bash

# -*- bash -*-
load "../system/helpers"
load "../system/helpers.network" # For random_free_port()
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
}