Skip to content

Commit

Permalink
tests/qemu-external-vm: rework version based skipping (canonical#287)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tomponline authored Sep 13, 2024
2 parents a1345f7 + 286a7c7 commit 1ee2fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/qemu-external-vm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ee2fe1

Please sign in to comment.