From 59d8cfa1a9c00bb5c37e2ff7af2432892245a19c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 27 Jun 2008 07:35:32 +0000 Subject: [PATCH] Modify debug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7243 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 12 ++++++++++-- regress/tests/fast-two-pool-test | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/regress/scripts/functions b/regress/scripts/functions index b3285d9752..4ce89add89 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -206,13 +206,21 @@ check_two_logs() check_restore_diff() { - diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null + if test "$debug" -eq 1 ; then + diff -ur build tmp/bacula-restores${cwd}/build + else + diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null + fi dstat=$? } check_restore_tmp_build_diff() { - diff -r tmp/build tmp/bacula-restores${cwd}/tmp/build 2>&1 >/dev/null + if test "$debug" -eq 1 ; then + diff -ur tmp/build tmp/bacula-restores${cwd}/tmp/build + else + diff -r tmp/build tmp/bacula-restores${cwd}/tmp/build 2>&1 >/dev/null + fi dstat=$? } diff --git a/regress/tests/fast-two-pool-test b/regress/tests/fast-two-pool-test index 6e8bbab87f..3087733b96 100755 --- a/regress/tests/fast-two-pool-test +++ b/regress/tests/fast-two-pool-test @@ -57,7 +57,7 @@ list jobs status storage=DDS-4 messages setdebug level=150 storage=DDS-4 -setdebug level=200 client +@#setdebug level=200 client restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done yes wait -- 2.39.5