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}}"