From 286a7c7ef74204f74ee1205956b1a2a0d242e2db Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 12 Sep 2024 09:37:38 -0400 Subject: [PATCH] tests/qemu-external-vm: rework version based skipping Testing only on `latest/edge` means that we'll need to revisit the condition when the next LTS occurs. Let's do it now as we know what to skip already. Signed-off-by: Simon Deziel --- tests/qemu-external-vm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-external-vm b/tests/qemu-external-vm index a487a0280..f11f373e7 100755 --- a/tests/qemu-external-vm +++ b/tests/qemu-external-vm @@ -9,8 +9,8 @@ if [ "${architecture}" != "x86_64" ]; then exit 0 fi -if ! echo "${LXD_SNAP_CHANNEL}" | grep -q '^latest/edge'; then - echo "Skipping test as should only run on latest/edge" +if echo "${LXD_SNAP_CHANNEL}" | grep -q '^[45]\.'; then + echo "Skipping test on 4.0, 5.0 and 5.21 branches" # shellcheck disable=SC2034 FAIL=0 exit 0