cfg2cmd: minor cleanup

We never shipped a 4.1.0 QEMU, so it makes more sense to test as 4.1.1

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2019-12-04 13:15:50 +01:00 committed by Thomas Lamprecht
parent c7728fdb85
commit 8b26544e50
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# TEST: Test for SPICE with SPICE with max_outputs # TEST: Test for SPICE with SPICE with max_outputs
# QEMU_VERSION: 4.1.0 # QEMU_VERSION: 4.1.1
cores: 2 cores: 2
memory: 768 memory: 768
name: spicelinux name: spicelinux

View File

@ -237,7 +237,7 @@ sub do_test($) {
my $cmd_expected = [ split /\s*\\?\n\s*/, $cmdline_expected ]; my $cmd_expected = [ split /\s*\\?\n\s*/, $cmdline_expected ];
my $cmd = [ split /\s*\\?\n\s*/, $cmdline ]; my $cmd = [ split /\s*\\?\n\s*/, $cmdline ];
# comment out for easier debugging # uncomment for easier debugging
#file_set_contents("$cmd_fn.tmp", $cmdline); #file_set_contents("$cmd_fn.tmp", $cmdline);
my $exp = join("\n", @$cmd_expected); my $exp = join("\n", @$cmd_expected);

View File

@ -315,7 +315,7 @@ sub vm_running_locally {
# BEGIN mocked PVE::QemuServer::Monitor methods # BEGIN mocked PVE::QemuServer::Monitor methods
sub qmp_cmd { sub qmp_cmd {
my ($vmid, $cmd, $nocheck) = @_; my ($vmid, $cmd) = @_;
my $exec = $cmd->{execute}; my $exec = $cmd->{execute};
if ($exec eq "delete-drive-snapshot") { if ($exec eq "delete-drive-snapshot") {