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-7.0.0~1867 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d62425e8fbd7aae48968e45bf828966f970c24d;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