Skip to content

Commit

Permalink
Split setup-html and running-html logic in END block.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Nov 9, 2023
1 parent 022bcc3 commit 9aac8fc
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 15 deletions.
4 changes: 3 additions & 1 deletion make.pl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ END
if ($odate) {
my @cmd = ("$regressdir/bin/bsdcons.pl", '-h', $opts{h}, '-d', $odate);
system(@cmd);
@cmd = ("$regressdir/bin/setup-html.pl");
}
if ($regressdir) {
my @cmd = ("$regressdir/bin/setup-html.pl");
system(@cmd);
@cmd = ("$regressdir/bin/running-html.pl");
system(@cmd);
Expand Down
4 changes: 3 additions & 1 deletion net.pl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ END
if ($odate) {
my @cmd = ("$netlinkdir/bin/bsdcons.pl", '-h', $opts{h}, '-d', $odate);
system(@cmd);
@cmd = ("$netlinkdir/bin/setup-html.pl");
}
if ($netlinkdir) {
my @cmd = ("$netlinkdir/bin/setup-html.pl");
system(@cmd);
@cmd = ("$netlinkdir/bin/running-html.pl");
system(@cmd);
Expand Down
10 changes: 6 additions & 4 deletions once.pl
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ END
release => $release);
relogdie();
}
my @cmd = ("$performdir/bin/setup-html.pl");
system(@cmd) if $performdir;
@cmd = ("$performdir/bin/running-html.pl");
system(@cmd) if $performdir;
if ($performdir) {
my @cmd = ("$performdir/bin/setup-html.pl");
system(@cmd);
@cmd = ("$performdir/bin/running-html.pl");
system(@cmd);
}
};
powerup_hosts(cvsdate => $cvsdate, patch => $patch, modify => $modify,
release => $release);
Expand Down
10 changes: 6 additions & 4 deletions run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ END
bsdcons_hosts();
relogdie();
}
my @cmd = ("$regressdir/bin/setup-html.pl");
system(@cmd) if $regressdir;
@cmd = ("$regressdir/bin/running-html.pl");
system(@cmd) if $regressdir;
if ($regressdir) {
my @cmd = ("$regressdir/bin/setup-html.pl");
system(@cmd);
@cmd = ("$regressdir/bin/running-html.pl");
system(@cmd);
}
};
if ($patch || !($setupmode{keep} || $setupmode{reboot})) {
setup_hosts(patch => $patch, mode => \%setupmode);
Expand Down
10 changes: 6 additions & 4 deletions step.pl
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ END
bsdcons_hosts(release => $release);
relogdie();
}
my @cmd = ("$performdir/bin/setup-html.pl");
system(@cmd) if $performdir;
@cmd = ("$performdir/bin/running-html.pl");
system(@cmd) if $performdir;
if ($performdir) {
my @cmd = ("$performdir/bin/setup-html.pl");
system(@cmd);
@cmd = ("$performdir/bin/running-html.pl");
system(@cmd);
}
};
if (!$setupmode{keep}) {
setup_hosts(release => $release, mode => \%setupmode);
Expand Down
4 changes: 3 additions & 1 deletion test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ END
if ($odate) {
my @cmd = ("$regressdir/bin/bsdcons.pl", '-h', $opts{h}, '-d', $odate);
system(@cmd);
@cmd = ("$regressdir/bin/setup-html.pl");
}
if ($regressdir) {
my @cmd = ("$regressdir/bin/setup-html.pl");
system(@cmd);
@cmd = ("$regressdir/bin/running-html.pl");
system(@cmd);
Expand Down

0 comments on commit 9aac8fc

Please sign in to comment.