github.com/AbhinandanKurakure/podman/v3@v3.4.10/test/upgrade/helpers.bash (about) 1 # -*- bash -*- 2 3 load "../system/helpers" 4 5 setup() { 6 : 7 } 8 9 teardown() { 10 : 11 } 12 13 # skip a test when the given version is older than the currently tested one 14 skip_if_version_older() { 15 # use ${PODMAN_UPGRADE_FROM##v} to trim the leading "v" 16 if printf '%s\n%s\n' "${PODMAN_UPGRADE_FROM##v}" "$1" | sort --check=quiet --version-sort; then 17 skip "${2-test is only meaningful when upgrading from $1 or later}" 18 fi 19 }