From: Kern Sibbald Date: Mon, 26 Apr 2010 15:59:05 +0000 (+0200) Subject: Reduce accurate test output when not debug X-Git-Tag: Release-5.2.1~1402 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b6984b0fd9c0bd46411dc1423e3e369aec65159;p=bacula%2Fbacula Reduce accurate test output when not debug --- diff --git a/regress/tests/accurate-test b/regress/tests/accurate-test index 98140398de..21ae4544c1 100755 --- a/regress/tests/accurate-test +++ b/regress/tests/accurate-test @@ -21,12 +21,14 @@ cp tmp/1 $conf/bacula-fd.conf change_jobname BackupClient1 $JobName p() { - echo "##############################################" >> ${cwd}/tmp/log1.out - echo "$*" >> ${cwd}/tmp/log1.out - echo "##############################################" >> ${cwd}/tmp/log2.out - echo "$*" >> ${cwd}/tmp/log2.out - echo "##############################################" - echo "$*" + echo "##############################################" >> ${cwd}/tmp/log1.out + echo "$*" >> ${cwd}/tmp/log1.out + echo "##############################################" >> ${cwd}/tmp/log2.out + echo "$*" >> ${cwd}/tmp/log2.out + if test "$debug" -eq 1 ; then + echo "##############################################" + echo "$*" + fi } # cleanup