]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: require KVM only for specific sub-tests
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 25 Aug 2022 12:23:49 +0000 (14:23 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 26 Aug 2022 13:40:34 +0000 (15:40 +0200)
since other sub-tests run relatively fine with TCG as well.

test/TEST-64-UDEV-STORAGE/test.sh

index 36c2dcd51b9181a9f5a11735670ed4ebaefb385b..80c60f19f7b0f175a9c8d59650943f04ab36387d 100755 (executable)
@@ -20,11 +20,6 @@ QEMU_TIMEOUT="${QEMU_TIMEOUT:-600}"
 USER_QEMU_OPTIONS="${QEMU_OPTIONS:-}"
 USER_KERNEL_APPEND="${KERNEL_APPEND:-}"
 
-if ! get_bool "$QEMU_KVM"; then
-    echo "This test requires KVM, skipping..."
-    exit 0
-fi
-
 _host_has_feature() {(
     set -e
 
@@ -213,6 +208,11 @@ testcase_nvme_basic() {
 
 # Test for issue https://github.com/systemd/systemd/issues/20212
 testcase_virtio_scsi_identically_named_partitions() {
+    if ! get_bool "$QEMU_KVM"; then
+        echo "This test requires KVM, skipping..."
+        return 77
+    fi
+
     if ! "${QEMU_BIN:?}" -device help | grep 'name "virtio-scsi-pci"'; then
         echo "virtio-scsi-pci device driver is not available, skipping test..."
         return 77