Skip to content

Commit

Permalink
Allow custom config for zebrad in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Oct 11, 2024
1 parent c718609 commit af082fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,12 @@ 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
exec zebrad -c "${ZEBRA_CONF_PATH}" "$@"
else
exec "$@"
fi
fi
}

Expand Down

0 comments on commit af082fb

Please sign in to comment.