aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-02-15 19:32:52 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-02-15 19:32:52 +0000
commite52af12a167147f892d4b54d9efc2054ea489f68 (patch)
tree1ad07f29c5ab0233351abf7ba91da08528a2161c /tools
parent8e42580debfaaf2753be26564755c7bd92f11932 (diff)
Notes
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/tinderbox/tinderbox.pl17
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/tools/tinderbox/tinderbox.pl b/tools/tools/tinderbox/tinderbox.pl
index 2baad7c73517..8476fc22f1e9 100644
--- a/tools/tools/tinderbox/tinderbox.pl
+++ b/tools/tools/tinderbox/tinderbox.pl
@@ -301,9 +301,6 @@ MAIN:{
error("invalid target machine");
}
$machine = $1;
- if (!defined($logfile)) {
- $logfile = "tinderbox-$branch-$arch-$machine.log";
- }
if (!@ARGV) {
usage();
@@ -334,13 +331,15 @@ MAIN:{
# Open logfile
open(STDIN, '<', "/dev/null")
or error("/dev/null: $!\n");
- if ($logfile !~ m|([\w./-]+)$|) {
- error("invalid log file name");
+ if (defined($logfile)) {
+ if ($logfile !~ m|([\w./-]+)$|) {
+ error("invalid log file name");
+ }
+ $logfile = $1;
+ unlink($logfile);
+ open(STDOUT, '>', $logfile)
+ or error("$logfile: $!");
}
- $logfile = $1;
- unlink($logfile);
- open(STDOUT, '>', $logfile)
- or error("$logfile: $!");
open(STDERR, ">&STDOUT");
$| = 1;
logstage("starting $branch tinderbox run for $arch/$machine");