From 1189ddf7ab203f1b8f31c5359b0d3210d1d480f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Obrok?= Date: Fri, 27 Dec 2024 11:28:15 +0100 Subject: [PATCH] ZK-626: Add option to keep node after tests (#72) --- tooling-e2e-tests/utils.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling-e2e-tests/utils.sh b/tooling-e2e-tests/utils.sh index 952d598a..14f04232 100644 --- a/tooling-e2e-tests/utils.sh +++ b/tooling-e2e-tests/utils.sh @@ -167,7 +167,8 @@ cleanup() { log_progress "🗒 Relayer logs saved to relayer-output.log" stop_relayer - if [[ ! -n "${TESTNET:-}" ]]; then + if [[ -z "${TESTNET:-}" ]] && [[ -z "${KEEP_NODE:-}" ]]; then + log_progress "🗒 Stopping anvil node" stop_node fi }