]> git.proxmox.com Git - pve-firewall.git/blobdiff - test/fwtester.pl
buildsys: avoid that the dinstall target always triggers a rebuild
[pve-firewall.git] / test / fwtester.pl
index b969295193df2868cdeee972431d85de95b1df8d..457f352100b09395dbe05813cd8cd91aca2c82f2 100755 (executable)
@@ -1,16 +1,19 @@
 #!/usr/bin/perl
 
 use lib '../src';
+
 use strict;
 use warnings;
+
 use Data::Dumper;
-use PVE::FirewallSimulator;
-use PVE::INotify;
-use PVE::Corosync;
-use Getopt::Long;
 use File::Basename;
+use Getopt::Long;
 use Net::IP;
 
+use PVE::Corosync;
+use PVE::FirewallSimulator;
+use PVE::INotify;
+
 my $debug = 0;
 
 sub print_usage_and_exit {
@@ -29,7 +32,7 @@ my $local_hostname = PVE::INotify::nodename();
 my $corosync_conf = PVE::Corosync::parse_conf($corosync_conf_fn, $raw_replaced);
 
 PVE::FirewallSimulator::debug($debug);
+
 my $testfilename = shift;
 my $testid = shift;
 
@@ -89,15 +92,10 @@ sub run_tests {
                }
            };
            if (my $err = $@) {
-
                print Dumper($ruleset->{filter}) if !$debug;
-
                print PVE::FirewallSimulator::get_trace() . "\n" if !$debug;
-
                print "$filename line $.: $line";
-
                print "test failed: $err\n";
-
                exit(-1);
            }
        } else {