Skip to content

Commit

Permalink
fix: change log path to tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Oct 28, 2024
1 parent 65e789c commit 923eaba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion run-nitro-test-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ runs:
${{ inputs.l3-node == 'true' && '--l3node' || '' }} \
${{ inputs.no-token-bridge == 'true' && '--no-tokenbridge' || '--tokenbridge' }} \
${{ inputs.l3-node == 'true' && inputs.no-l3-token-bridge != 'true' && '--l3-token-bridge' || '' }} \
${{ inputs.args }} > ${{ github.action_path }}/test-node.log &
${{ inputs.args }} > /tmp/test-node.log &
- name: Wait for nitro startup
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions run-nitro-test-node/waitForNitro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ PORT=${1:-8547}
# timeout after around 17 minutes
for i in {1..100}
do
cat test-node.log
: > test-node.log
cat /tmp/test-node.log
: > /tmp/test-node.log
curl --silent -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":45678,"method":"eth_chainId","params":[]}' "http://localhost:$PORT"
if [ "$?" -eq "0" ]; then
exit 0
else
echo "nitro not ready yet at port $PORT"
if ! pgrep -f "test-node.bash" > /dev/null; then
echo "Script test-node.bash is not running."
cat test-node.log
cat /tmp/test-node.log
exit 1
fi
sleep 10
Expand Down
2 changes: 1 addition & 1 deletion run-nitro-test-node/waitForTokenBridge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ do
echo "token bridge not ready yet $1"
if ! pgrep -f "test-node.bash" > /dev/null; then
echo "Script test-node.bash is not running."
cat test-node.log
cat /tmp/test-node.log
exit 1
fi
sleep 10
Expand Down

0 comments on commit 923eaba

Please sign in to comment.