Strip log_warn wrapper for catching warnings on testruns. Signed-off-by: Daniel Herzig <d.her...@proxmox.com> --- test/run_config2command_tests.pl | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/test/run_config2command_tests.pl b/test/run_config2command_tests.pl index 71b00e9a..8df4f4e8 100755 --- a/test/run_config2command_tests.pl +++ b/test/run_config2command_tests.pl @@ -213,6 +213,10 @@ $qemu_server_module->mock( my $file_path = shift; return 1 if !($file_path =~ m|I_DO_NOT_EXIST|); }, + log_warn => sub { + my $logwarn = shift; + return warn("${logwarn}\n"); + }, ); my $qemu_server_config; -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel