Use defaults-file in test config file to simulate user's setup.

This commit is contained in:
Daniel Nichter
2013-08-12 14:33:51 -07:00
parent 9d4f23fe53
commit b54b4adb92

View File

@@ -313,6 +313,7 @@ diag(`rm -f $pid_file $log_file $cnf_file >/dev/null 2>&1`);
open my $fh, '>', $cnf_file or die "Error opening $cnf_file: $OS_ERROR"; open my $fh, '>', $cnf_file or die "Error opening $cnf_file: $OS_ERROR";
print { $fh } <<EOF; print { $fh } <<EOF;
defaults-file=$master_cnf
log-dsn=$slave_dsn,$log_dsn log-dsn=$slave_dsn,$log_dsn
daemonize daemonize
run-time=1 run-time=1
@@ -321,8 +322,6 @@ interval=1
match-db=$target_db match-db=$target_db
pid=$pid_file pid=$pid_file
log=$log_file log=$log_file
--
$master_dsn
EOF EOF
close $fh; close $fh;