From 14a9a0b2a01f0c6a5dc845c76f4305c9e6bf47f4 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Tue, 3 Oct 2023 21:58:50 +0100 Subject: [PATCH] fix: allow 3 arguments instead of 2 to handle `fully_synced_rpc_` correctly --- docker/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 6697d8fc0ae..4fb59ac8476 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -154,7 +154,7 @@ list_directory() { # Function to run cargo test run_cargo_test() { - cargo test --locked --release --features "$1" --package zebrad --test acceptance -- --nocapture --include-ignored "$2" || { echo "Cargo test failed"; exit 1; } + cargo test --locked --release --features "$1" --package zebrad --test acceptance -- --nocapture --include-ignored "$2" "$3" || { echo "Cargo test failed"; exit 1; } } case "$1" in @@ -246,7 +246,7 @@ case "$1" in list_directory "${ZEBRA_CACHED_STATE_DIR}" # Run both the fully synced RPC test and the subtree snapshot test, one test at a time. # Since these tests use the same cached state, a state problem in the first test can fail the second test. - run_cargo_test "${ENTRYPOINT_FEATURES}" "--test-threads 1 fully_synced_rpc_" + run_cargo_test "${ENTRYPOINT_FEATURES}" "--test-threads 1" "fully_synced_rpc_" elif [[ "${TEST_LWD_FULL_SYNC}" -eq "1" ]]; then # Starting at a cached Zebra tip, run a lightwalletd sync to tip.