5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-03-08 04:58:26 +03:00

test: config2command: fallback to hardcoded version

especially useful when bootstrapping, where  pve-qemu-kvm may not yet
be build

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-05-22 18:37:02 +02:00
parent bf4a933e52
commit 987e7ab4e4

View File

@ -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?