summaryrefslogtreecommitdiff
path: root/test/TEST-64-UDEV-STORAGE
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-08-25 14:23:49 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-08-26 15:40:34 +0200
commit092499b9f69b89f7afb392ddc733edb87e1503ca (patch)
tree448ddfc415a6c73e3b33d009b6a626a35a6b22ad /test/TEST-64-UDEV-STORAGE
parentcde09b07dfdc132a31672693c037bfc0b5879331 (diff)
downloadsystemd-092499b9f69b89f7afb392ddc733edb87e1503ca.tar.gz
test: require KVM only for specific sub-tests
since other sub-tests run relatively fine with TCG as well.
Diffstat (limited to 'test/TEST-64-UDEV-STORAGE')
-rwxr-xr-xtest/TEST-64-UDEV-STORAGE/test.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/TEST-64-UDEV-STORAGE/test.sh b/test/TEST-64-UDEV-STORAGE/test.sh
index 36c2dcd51b..80c60f19f7 100755
--- a/test/TEST-64-UDEV-STORAGE/test.sh
+++ b/test/TEST-64-UDEV-STORAGE/test.sh
@@ -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