]> git.proxmox.com Git - pve-network.git/commitdiff
tests: zone: include error if test interfaces file cannot be opened
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Nov 2023 10:39:46 +0000 (11:39 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Nov 2023 11:48:24 +0000 (12:48 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/test/run_test_zones.pl

index dd5531725ef225623cc380835e8fd46f665f6bc8..8e3474613fc85176c4888e6094bf7705a58876a0 100755 (executable)
@@ -36,7 +36,7 @@ foreach my $test (@tests) {
 
     my $sdn_config = read_sdn_config ("./$test/sdn_config");
 
-    open my $fh1, '<', "./$test/interfaces" or die "can't read interfaces file";
+    open(my $fh1, '<', "./$test/interfaces") or die "can't read interfaces file - $!";
     my $interfaces_config = PVE::INotify::__read_etc_network_interfaces($fh1, undef, undef);
     close $fh1;