From: Frantisek Sumsal Date: Thu, 25 Aug 2022 11:51:15 +0000 (+0200) Subject: test: check for other hypervisors as well X-Git-Tag: v252-rc1~326^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cde09b07dfdc132a31672693c037bfc0b5879331;p=thirdparty%2Fsystemd.git test: check for other hypervisors as well EC2 machines run on Xen, so account for that as well when checking KVM availability. --- diff --git a/test/test-functions b/test/test-functions index 3cdfd800f08..14344a4d1ee 100644 --- a/test/test-functions +++ b/test/test-functions @@ -92,7 +92,7 @@ add_at_exit_handler() { # check if it's not explicitly disabled (TEST_NO_KVM) and we're not already # running under KVM. If these conditions are met, enable KVM (and possibly # nested KVM), otherwise disable it. -if get_bool "${TEST_NESTED_KVM:=}" || (! get_bool "${TEST_NO_KVM:=}" && [[ "$(systemd-detect-virt -v)" != kvm ]]); then +if get_bool "${TEST_NESTED_KVM:=}" || (! get_bool "${TEST_NO_KVM:=}" && ! systemd-detect-virt -v); then QEMU_KVM=yes else QEMU_KVM=no