summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-02-13 10:52:46 +0000
committerdes <des@FreeBSD.org>2003-02-13 10:52:46 +0000
commit293057394b3fb5f6ac16cc452bc6c589b34c40ec (patch)
treee2c470e11694af4337f91e6c3794f2dcd0509878 /tools
parent0fb179fc08513bb6ea4f1c03a33680d2f890c6fe (diff)
downloadFreeBSD-src-293057394b3fb5f6ac16cc452bc6c589b34c40ec.zip
FreeBSD-src-293057394b3fb5f6ac16cc452bc6c589b34c40ec.tar.gz
Move away the old log file before starting the tinderbox so we don't
accidentally post the old log if the tinderbox script failed to start altogether.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/tinderbox/tbmaster.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/tools/tinderbox/tbmaster.pl b/tools/tools/tinderbox/tbmaster.pl
index cce615a..08e0ab2 100644
--- a/tools/tools/tinderbox/tbmaster.pl
+++ b/tools/tools/tinderbox/tbmaster.pl
@@ -74,6 +74,7 @@ sub tinderbox($$$$) {
push(@args, @TARGETS);
print(STDERR join(' ', @args), "\n");
+ rename($logfile, "$logfile.old");
if (system(@args) != 0) {
my $messages = "";
my @accumulate;
OpenPOWER on IntegriCloud