]> git.proxmox.com Git - pve-network.git/commitdiff
tests: zones: output any unexpected error as diagnostic
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Nov 2023 10:27:13 +0000 (11:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Nov 2023 11:48:24 +0000 (12:48 +0100)
really helps debugging things..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/test/run_test_zones.pl

index 12e017a9cd1b76dfcbff2b0a59282a7af183b595..dd5531725ef225623cc380835e8fd46f665f6bc8 100755 (executable)
@@ -97,6 +97,7 @@ foreach my $test (@tests) {
     };
 
     if (my $err = $@) {
+       diag("got unexpected error - $err");
        fail($name);
     } else {
        is ($result, $expected, $name);
@@ -111,6 +112,7 @@ foreach my $test (@tests) {
            $controller_rawconfig = PVE::Network::SDN::Controllers::generate_controller_rawconfig($config);
        };
        if (my $err = $@) {
+           diag("got unexpected error - $err");
            fail($name);
        } else {
            is ($controller_rawconfig, $expected, $name);