Skip to content

Commit

Permalink
integration: get logs from ${TMPDIR}
Browse files Browse the repository at this point in the history
On OSX the ${TMPDIR} containing the logs is not /tmp.
  • Loading branch information
daviddrysdale committed Nov 17, 2016
1 parent 0f8fd3c commit fe0a843
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion integration/log_integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ kill -INT ${RPC_SERVER_PID}

if [ $RESULT != 0 ]; then
sleep 1
if [ "$TMPDIR" == "" ]; then
TMPDIR=/tmp
fi
echo "Server log:"
echo "--------------------"
cat /tmp/trillian_log_server.INFO
cat ${TMPDIR}/trillian_log_server.INFO
fi
5 changes: 4 additions & 1 deletion integration/map_integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ kill -INT ${RPC_SERVER_PID}

if [ $RESULT != 0 ]; then
sleep 1
if [ "$TMPDIR" == "" ]; then
TMPDIR=/tmp
fi
echo "Server log:"
echo "--------------------"
cat /tmp/trillian_map_server.INFO
cat ${TMPDIR}/trillian_map_server.INFO
fi

0 comments on commit fe0a843

Please sign in to comment.