From 4533a0f95c76a6b068bfa0d7b20b4f9f7864d265 Mon Sep 17 00:00:00 2001 From: gzeon Date: Sat, 17 Aug 2024 03:32:19 +0900 Subject: [PATCH] ci: fix --- .github/workflows/testnode.bash | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testnode.bash b/.github/workflows/testnode.bash index 41a87ce4..0a080afd 100755 --- a/.github/workflows/testnode.bash +++ b/.github/workflows/testnode.bash @@ -5,8 +5,31 @@ # Start the test node and get PID, to terminate it once send-l2 is done. cd ${GITHUB_WORKSPACE} +while [[ $# -gt 0 ]]; do + case $1 in + --pos) + pos=true + shift + ;; + *) + echo "Unknown option $1" + exit 1 + ;; + esac +done + # TODO once develop is merged into nitro-contract's master, remove the NITRO_CONTRACTS_BRANCH env var -./test-node.bash --init-force --l3node --no-simple --detach +if [ "$pos" = true ]; then + echo "Running with --pos" + ./test-node.bash --init-force --l3node --no-simple --detach --pos +else + ./test-node.bash --init-force --l3node --no-simple --detach +fi + +if [ $? -ne 0 ]; then + echo "test-node.bash failed" + exit 1 +fi START=$(date +%s) L2_TRANSACTION_SUCCEEDED=false