From b493760ae38f5fb38e0392638877be04b5f24a5c Mon Sep 17 00:00:00 2001 From: Tsahi Zidenberg Date: Fri, 19 Apr 2024 15:56:36 -0600 Subject: [PATCH] fix ci script --- .github/workflows/testnode.bash | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testnode.bash b/.github/workflows/testnode.bash index 258a47c6..29525cb0 100755 --- a/.github/workflows/testnode.bash +++ b/.github/workflows/testnode.bash @@ -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 @@ -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