From: Kern Sibbald Date: Sun, 25 Jun 2017 09:47:41 +0000 (+0200) Subject: Add more debug to regress for FreeBSD failures X-Git-Tag: Release-9.0.0~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=096e1d4f93cf898ebd7efee6c7b126b732abe020;p=bacula%2Fbacula Add more debug to regress for FreeBSD failures --- diff --git a/regress/tests/console-dotcmd-test b/regress/tests/console-dotcmd-test index 2fe5b3a4a9..8cf74dba06 100755 --- a/regress/tests/console-dotcmd-test +++ b/regress/tests/console-dotcmd-test @@ -101,11 +101,12 @@ sleep 10 $bperl -e '(-M "$tmp/logsametime.done" < -M "$tmp/logerr.done") && exit 1' if [ $? -ne 0 ]; then print_debug "ERROR: The timestamp of $tmp/logsametime.done should be smaller than $tmp/logerr.done" - echo "logsametime.done" - cat $tmp/logsametime.done - echo "logerr.done" - cat $tmp/logerr.done + stat $tmp/logsametime.done + stat $tmp/logerr.done estat=1 +else + stat $tmp/logsametime.done + stat $tmp/logerr.done fi nb=`grep test50-1-fd $tmp/log2.out $tmp/logerr2.out | wc -l` diff --git a/regress/tests/file-span-vol-test b/regress/tests/file-span-vol-test index 11cedb346c..a5d0127054 100755 --- a/regress/tests/file-span-vol-test +++ b/regress/tests/file-span-vol-test @@ -25,6 +25,7 @@ start_test # Remove last / and convert all / to cd commands CD=`printf $tmp | sed 's:/$::' | sed 's:/:\ncd :g'` +echo "CD=${CD}" cat <${cwd}/tmp/bconcmds @output /dev/null @@ -47,7 +48,7 @@ messages @$out ${cwd}/tmp/log2.out restore where=$tmp/bacula-restores select storage=File1 unmark * -$CD +${CD} mark big done yes diff --git a/regress/tests/verify-data-test b/regress/tests/verify-data-test index c80c0b794c..cfcfc3342d 100755 --- a/regress/tests/verify-data-test +++ b/regress/tests/verify-data-test @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2000-2015 Kern Sibbald +# Copyright (C) 2000-2017 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # # @@ -61,6 +61,7 @@ stop_bacula $bperl -e 'add_attribute("$conf/bacula-sd.conf", "BlockChecksum", "no", "Device")' +# Introduce a volume error by modifying the some Volume data nbok=2 if [ x$FORCE_DEDUP = xyes ]; then nbok=4 @@ -73,7 +74,9 @@ fi cat <tmp/bconcmds @$out tmp/log3.out @# -@# now do a verify volume with errors +@# now do a verify volume with errors. Note, which JobId produces +@# verify errors depends on the size of data stored (less with dedup +@# and ALIGNED). @# @$out ${cwd}/tmp/log3.out setdebug level=10 client @@ -98,14 +101,14 @@ if [ $nb -ne 4 ]; then fi nb=`grep "^ Termination: *Verify OK" tmp/log2.out | wc -l` if [ $nb -ne 4 ]; then - rstat=1 + vstat=1 fi nb=`grep "^ Termination: *Verify OK" tmp/log3.out | wc -l` if [ $nb -ne $nbok ]; then echo "nb=${nb} nbok=${nbok}" echo "tmp/log3.out" cat tmp/log3.out - rstat=2 + vstat=2 fi dstat=0 end_test