Skip to content

Commit

Permalink
fix ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Apr 19, 2024
1 parent a2bad35 commit b493760
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/testnode.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
# until send-l2 succeeds.

# Start the test node and get PID, to terminate it once send-l2 is done.
${GITHUB_WORKSPACE}/test-node.bash --init > output.log 2>&1 &
PID=$!
cd ${GITHUB_WORKSPACE}

sleep 5m
./test-node.bash --init-force --detach

START=$(date +%s)
SUCCEDED=0
Expand All @@ -29,11 +28,10 @@ while true; do
sleep 10
done

# Shut down the test node and wait for it to terminate.
kill $PID
wait $PID
docker-compose stop

if [ "$SUCCEDED" -eq 0 ]; then
docker-compose logs
exit 1
fi

Expand Down

0 comments on commit b493760

Please sign in to comment.