From: Thomas Lamprecht Date: Wed, 29 Nov 2023 10:39:46 +0000 (+0100) Subject: tests: zone: include error if test interfaces file cannot be opened X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1ed61845d49881adf1e959c22ac68cd6fcdf2ec1;p=matthieu%2Fpve-network.git tests: zone: include error if test interfaces file cannot be opened Signed-off-by: Thomas Lamprecht --- diff --git a/src/test/run_test_zones.pl b/src/test/run_test_zones.pl index dd55317..8e34746 100755 --- a/src/test/run_test_zones.pl +++ b/src/test/run_test_zones.pl @@ -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;