diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/evergreen/verify_wt_datafiles.sh')
-rwxr-xr-x | src/third_party/wiredtiger/test/evergreen/verify_wt_datafiles.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/third_party/wiredtiger/test/evergreen/verify_wt_datafiles.sh b/src/third_party/wiredtiger/test/evergreen/verify_wt_datafiles.sh index 2a16240792f..6293e3f4b38 100755 --- a/src/third_party/wiredtiger/test/evergreen/verify_wt_datafiles.sh +++ b/src/third_party/wiredtiger/test/evergreen/verify_wt_datafiles.sh @@ -56,14 +56,15 @@ for d in ${dirs_include_datafile} do echo "${d}" - ${wt_binary} -h ${d} printlog > /dev/null - if [ "$?" -ne "0" ]; then - echo "Failed to dump '${d}' log files, exiting ..." - exit 1 + # Make sure logging is enabled before running the printlog command. + if grep -q -E "logging=(1|on)" ${d}/CONFIG; then + if ! ${wt_binary} -h ${d} printlog > /dev/null; then + echo "Failed to dump '${d}' log files, exiting ..." + exit 1 + fi fi - tables=$(${wt_binary} -h "${d}" list) - if [ "$?" -ne "0" ]; then + if ! tables=$(${wt_binary} -h "${d}" list); then echo "Failed to list '${d}' directory, exiting ..." exit 1 fi |