Skip to content

Commit

Permalink
netlink prints configuration and exits early if no tests are given.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Jan 23, 2024
1 parent a949a4d commit 3ee1747
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions netlink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ sub good {
printcmd('sysctl', 'net.inet.tcp.tso=1');
}

print "\nold config destroyed\n\n";
print "\nold config destroyed: modify $modify\n\n";

# only run generic setup code, basically destroys interface config
exit if $iface eq "none";
Expand Down Expand Up @@ -636,7 +636,10 @@ sub good {
printcmd('ping6', '-n', '-c1', '-w5', $lnx_l_addr6);
printcmd('ping6', '-n', '-c1', '-w5', $lnx_r_addr6);

print "\nnew config created\n\n";
print "\nnew config created: modify $modify, iface $iface, pseudo $pseudo\n\n";

# only run interface creation, and network setup
exit unless %testmode;

my $netbench = "$netlinkdir/netbench.pl";

Expand Down Expand Up @@ -1124,7 +1127,8 @@ sub netbench_parser {
chdir($netlinkdir)
or die "Change directory to '$netlinkdir' failed: $!";

print "\ntests finished\n\n";
my @testmodes = sort keys %testmode;
print "\ntests finished: @testmodes\n\n";

# create a tgz file with all log files
my @paxcmd = ('pax', '-x', 'cpio', '-wzf', "$netlinkdir/test.log.tgz");
Expand Down

0 comments on commit 3ee1747

Please sign in to comment.