From 2fdbdd7a72cf346bde37e09a0542f3c88e0cc71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 19 Dec 2025 07:36:45 -0500 Subject: [PATCH] tests: Update tests for Linstor limitation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- test/suites/incremental_copy.sh | 3 +++ test/suites/migration.sh | 3 +++ test/suites/snapshots.sh | 10 ++++++++++ test/suites/storage_local_volume_handling.sh | 3 +++ 4 files changed, 19 insertions(+) diff --git a/test/suites/incremental_copy.sh b/test/suites/incremental_copy.sh index 2830771a9..b4b7282b0 100644 --- a/test/suites/incremental_copy.sh +++ b/test/suites/incremental_copy.sh @@ -1,4 +1,7 @@ test_incremental_copy() { + # shellcheck disable=2153 + [ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return + ensure_import_testimage ensure_has_localhost_remote "${INCUS_ADDR}" diff --git a/test/suites/migration.sh b/test/suites/migration.sh index 87c642cce..cfc823e17 100644 --- a/test/suites/migration.sh +++ b/test/suites/migration.sh @@ -1,4 +1,7 @@ test_migration() { + # shellcheck disable=2153 + [ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return + # setup a second Incus # shellcheck disable=2039,3043 local INCUS2_DIR INCUS2_ADDR incus_backend diff --git a/test/suites/snapshots.sh b/test/suites/snapshots.sh index 156a3af39..8f306b3e6 100644 --- a/test/suites/snapshots.sh +++ b/test/suites/snapshots.sh @@ -1,4 +1,7 @@ test_snapshots() { + # shellcheck disable=2153 + [ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return + snapshots if [ "$(storage_backend "$INCUS_DIR")" = "lvm" ]; then @@ -97,6 +100,7 @@ snapshots() { } test_snap_restore() { + [ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return snap_restore if [ "$(storage_backend "$INCUS_DIR")" = "lvm" ]; then @@ -315,6 +319,9 @@ restore_and_compare_fs() { } test_snap_expiry() { + # shellcheck disable=2153 + [ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return + # shellcheck disable=2039,3043 local incus_backend incus_backend=$(storage_backend "$INCUS_DIR") @@ -341,6 +348,9 @@ test_snap_expiry() { } test_snap_schedule() { + # shellcheck disable=2153 + [ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return + # shellcheck disable=2039,3043 local incus_backend incus_backend=$(storage_backend "$INCUS_DIR") diff --git a/test/suites/storage_local_volume_handling.sh b/test/suites/storage_local_volume_handling.sh index f3baed63b..d72a20e64 100644 --- a/test/suites/storage_local_volume_handling.sh +++ b/test/suites/storage_local_volume_handling.sh @@ -1,4 +1,7 @@ test_storage_local_volume_handling() { + # shellcheck disable=2153 + [ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return + ensure_import_testimage # shellcheck disable=2039,3043