From 987e7ab4e4fd5dfee28b7815bdb7ac4959c67404 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 22 May 2019 18:37:02 +0200 Subject: [PATCH] test: config2command: fallback to hardcoded version especially useful when bootstrapping, where pve-qemu-kvm may not yet be build Signed-off-by: Thomas Lamprecht --- test/run_config2command_tests.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run_config2command_tests.pl b/test/run_config2command_tests.pl index b0cad21d..dbec70c1 100755 --- a/test/run_config2command_tests.pl +++ b/test/run_config2command_tests.pl @@ -105,10 +105,10 @@ my $qemu_server_module; $qemu_server_module = Test::MockModule->new('PVE::QemuServer'); $qemu_server_module->mock( kvm_user_version => sub { - return $current_test->{qemu_version} // $base_env->{real_qemu_version}; + return $current_test->{qemu_version} // $base_env->{real_qemu_version} // '2.12'; }, kvm_version => sub { - return $current_test->{qemu_version} // $base_env->{real_qemu_version}; + return $current_test->{qemu_version} // $base_env->{real_qemu_version} // '2.12'; }, kernel_has_vhost_net => sub { return 1; # TODO: make this per-test configurable?