Skip to content

Commit

Permalink
print transacitons log on failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
btovar committed Dec 9, 2024
1 parent f7fbaa0 commit bfa16a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion dttools/test/test_runner_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,16 @@ check_needed()

latest_vine_debug_log()
{
logname=$1
shift

if [ -z "$logname" ]
then
logname=debug
fi

base=${1:-vine-run-info}
echo "${base}/most-recent/vine-logs/debug"
echo "${base}/most-recent/vine-logs/${logname}"
}


Expand Down
9 changes: 8 additions & 1 deletion taskvine/test/TR_vine_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@ run()
logfile=$(latest_vine_debug_log)
if [ -f ${logfile} ]
then
echo "master log:"
echo "master debug log:"
cat ${logfile}
fi

logfile=$(latest_vine_debug_log transactions)
if [ -f ${logfile} ]
then
echo "master transactions log:"
cat ${logfile}
fi

Expand Down

0 comments on commit bfa16a8

Please sign in to comment.