X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmessages-test;h=454a4d794004686029e60dcd23b17680b6c69a62;hb=576f41b2d1830dc7de53214e2fcf2365244f0531;hp=918943805f3f8c6f3ad4d6610f43af43a8261077;hpb=372f204da3c90d3491de3e311a71ea2761a8eba5;p=bacula%2Fbacula diff --git a/regress/tests/messages-test b/regress/tests/messages-test index 918943805f..454a4d7940 100755 --- a/regress/tests/messages-test +++ b/regress/tests/messages-test @@ -11,7 +11,8 @@ JobName=backup scripts/cleanup scripts/copy-confs - +change_jobname BackupClient1 $JobName +start_test # # Zap out any schedule in default conf file so that # it doesn't start during our test @@ -21,19 +22,19 @@ echo "s% Schedule =%# Schedule =%g" >$outf # tweak all Messages {} with non valid path echo 's%append = "%append = "/nowhere%g' >> $outf -echo 's%mailcommand = "%mailcommand = "/nowhere%g' >> $outf +echo "s%bsmtp -h $SMTP_HOST%bsmtp -h nonvalidhost%g" >> $outf +echo 's%# mail% mail%' >> $outf +#echo 's%mailcommand = "%mailcommand = "/nowhere%g' >> $outf cp $scripts/bacula-dir.conf $tmp/1 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf -change_jobname BackupClient1 $JobName -start_test cat <$tmp/bconcmds @$out /dev/null messages @$out $tmp/log1.out -setdebug level=100 storage=File +@#setdebug level=100 storage=File label volume=TestVolume001 storage=File pool=File run job=$JobName yes @sleep 1