From 3f7c7c1e80197ad0628dfc58baa240b1c2e893ea Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Fri, 19 Apr 2024 17:42:50 -0400 Subject: [PATCH] test/main: warn on non-latest/edge snap channels Signed-off-by: Simon Deziel --- microcloud/test/main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/microcloud/test/main.sh b/microcloud/test/main.sh index b097210cf..1dcfc09f3 100755 --- a/microcloud/test/main.sh +++ b/microcloud/test/main.sh @@ -35,9 +35,6 @@ import_subdir_files includes echo "==> Checking for dependencies" check_dependencies lxc lxd curl awk jq git python3 shuf rsync openssl -echo "===> Checking that all snap channels are set to latest/edge" -check_snap_channels - cleanup() { # Do not exit if commands fail on cleanup. (No need to reset -e as this is only run on test suite exit). set -eux @@ -131,6 +128,9 @@ set -u export MICROCLOUD_SNAP_PATH +echo "===> Checking that all snap channels are set to latest/edge" +check_snap_channels + run_test() { TEST_CURRENT="${1}" TEST_CURRENT_DESCRIPTION="${2:-${1}}"