Allows overriding conf options when testing.
Bugfix: features displayed always, only show when step requested.
@option_list =qw(
$forcerun $buildconf $keepall $help
$quiet $from_source $from_source_clean $testmode
@option_list =qw(
$forcerun $buildconf $keepall $help
$quiet $from_source $from_source_clean $testmode
- $skip_steps $only_steps
+ $skip_steps $only_steps $override
$nosend $nostatus $verbose
);
}
$nosend $nostatus $verbose
);
}
our (
$forcerun, $buildconf, $keepall,$help,
$quiet, $from_source,$from_source_clean, $testmode,
our (
$forcerun, $buildconf, $keepall,$help,
$quiet, $from_source,$from_source_clean, $testmode,
- $skip_steps,$only_steps,
+ $skip_steps,$only_steps, $overrides,
$nosend, $nostatus, $verbose,
);
$nosend, $nostatus, $verbose,
);
'quiet' => \$quiet,
'skip-steps=s' => \$skip_steps,
'only-steps=s' => \$only_steps,
'quiet' => \$quiet,
'skip-steps=s' => \$skip_steps,
'only-steps=s' => \$only_steps,
+ 'override=s@' => \$overrides,
);
$buildconf = "build-farm.conf"; # default value
);
$buildconf = "build-farm.conf"; # default value
print scalar(localtime()),": buildfarm run for $animal:$branch starting\n"
if $verbose;
print scalar(localtime()),": buildfarm run for $animal:$branch starting\n"
if $verbose;
+# Allow commandline overrides of conf variables
+foreach my $arg ( @{$EximBuild::Options::overrides} )
+{
+ if (my ($key,$val) = split '=', $arg)
+ {
+ $EximBuild::conf{$key} = $val;
+ printf "Commandline override: '$key' = '%s'\n", $EximBuild::conf{$key}
+ if $verbose;
+ }
+}
+
if (ref($force_every) eq 'HASH')
{
$force_every = $force_every->{$branch} || $force_every->{default};
if (ref($force_every) eq 'HASH')
{
$force_every = $force_every->{$branch} || $force_every->{default};
+ return unless step_wanted('features');
my @out = `cd $exim
src/build-*/exim -C test/confs/0000 -bV `;
my $status = $? >>8;
my @out = `cd $exim
src/build-*/exim -C test/confs/0000 -bV `;
my $status = $? >>8;