summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-06-12 11:22:21 +0000
committerdes <des@FreeBSD.org>2004-06-12 11:22:21 +0000
commit0d0a24e6ab6db1f5a15ee58dc11750382ec1a89e (patch)
treebff21b17cd799c430b6618eed1deae50ce307e74 /tools
parentc72d8a4de41e33b39af676a537a8b896456091b0 (diff)
downloadFreeBSD-src-0d0a24e6ab6db1f5a15ee58dc11750382ec1a89e.zip
FreeBSD-src-0d0a24e6ab6db1f5a15ee58dc11750382ec1a89e.tar.gz
Include the config name in the log file name.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/tinderbox/tbmaster.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/tools/tinderbox/tbmaster.pl b/tools/tools/tinderbox/tbmaster.pl
index c3eedcf..12d7a87 100644
--- a/tools/tools/tinderbox/tbmaster.pl
+++ b/tools/tools/tinderbox/tbmaster.pl
@@ -199,6 +199,7 @@ sub tinderbox($$$) {
my $arch = shift;
my $machine = shift;
+ my $config = expand('CONFIG');
my $start = time();
$CONFIG{'BRANCH'} = $branch;
@@ -206,7 +207,8 @@ sub tinderbox($$$) {
$CONFIG{'MACHINE'} = $machine;
# Open log files: one for the full log and one for the summary
- my $logfile = expand('LOGDIR') . "/tinderbox-$branch-$arch-$machine";
+ my $logfile = expand('LOGDIR') .
+ "/tinderbox-$config-$branch-$arch-$machine";
local (*FULL, *BRIEF);
if (!open(FULL, ">", "$logfile.full.$$")) {
warn("$logfile.full.$$: $!\n");
@@ -461,6 +463,11 @@ MAIN:{
chdir($etcdir)
or die("$etcdir: $!\n");
}
+ for (my $n = 0; $n < @configs; ++$n) {
+ $configs[$n] =~ m/^(\w+)$/
+ or die("invalid config: $configs[$n]\n");
+ $configs[$n] = $1;
+ }
# Run all specified or implied configurations
foreach my $config (@configs) {
OpenPOWER on IntegriCloud