[pve-devel] [PATCH qemu-server 04/16] tests: cfg2cmd: remove invalid mocking of qmp_cmd
Fiona Ebner
f.ebner at proxmox.com
Tue Oct 14 16:39:15 CEST 2025
There is no definition of 'qmp_cmd' that could be referenced as a
subroutine with '\&qmp_cmd'. If the function would actually be called
during the test, there would be an error:
> Undefined subroutine &main::qmp_cmd called
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
src/test/run_config2command_tests.pl | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/test/run_config2command_tests.pl b/src/test/run_config2command_tests.pl
index 0623b5c1..f63e8b68 100755
--- a/src/test/run_config2command_tests.pl
+++ b/src/test/run_config2command_tests.pl
@@ -525,7 +525,6 @@ $qemu_monitor_module->mock(
die "unexpected QMP command: '$cmd'";
},
);
-$qemu_monitor_module->mock('qmp_cmd', \&qmp_cmd);
my $mapping_usb_module = Test::MockModule->new("PVE::Mapping::USB");
$mapping_usb_module->mock(
--
2.47.3
More information about the pve-devel
mailing list