From 69b03d4e18f88af3ef4c10ebeee92a0ac0e2a4d0 Mon Sep 17 00:00:00 2001 From: Marek Date: Fri, 11 Oct 2024 15:27:06 +0200 Subject: [PATCH] Allow custom config for `zebrad` in test mode --- docker/entrypoint.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 9414f6e3478..1ffad39ef9e 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -330,7 +330,18 @@ run_tests() { exec cargo test --locked --release --features "zebra-test" --package zebra-scan \ -- --nocapture --include-ignored scan_task_commands else - exec "$@" + if [[ "$1" == "zebrad" ]] && [[ -f "${ZEBRA_CONF_PATH}" ]]; then + shift + echo "if" + echo "conf path: " "${ZEBRA_CONF_PATH}" + echo "pos param: " "$@" + exec zebrad -c "${ZEBRA_CONF_PATH}" "$@" + else + echo "else" + echo "conf path: " "${ZEBRA_CONF_PATH}" + echo "pos param: " "$@" + exec "$@" + fi fi }