From b978534fc05bd656675290ecb8c422b2625da27a Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Thu, 19 Sep 2024 09:27:35 -0300 Subject: [PATCH] fix binary location --- zebra-rpc/qa/README.md | 3 +-- zebra-rpc/qa/rpc-tests/test_framework/util.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/zebra-rpc/qa/README.md b/zebra-rpc/qa/README.md index d3ef618d302..cc46d7b54ef 100644 --- a/zebra-rpc/qa/README.md +++ b/zebra-rpc/qa/README.md @@ -29,8 +29,7 @@ pip3 install pyzmq base58 toml Running tests locally ===================== -If it is not already there please set the zebrad binary environment variable: - +Make sure `zebrad` binary exists in the `../target/debug/` folder or set the binary path with: ``` export CARGO_BIN_EXE_zebrad=/path/to/zebrad ``` diff --git a/zebra-rpc/qa/rpc-tests/test_framework/util.py b/zebra-rpc/qa/rpc-tests/test_framework/util.py index a51b229f29e..40262820da6 100644 --- a/zebra-rpc/qa/rpc-tests/test_framework/util.py +++ b/zebra-rpc/qa/rpc-tests/test_framework/util.py @@ -52,7 +52,7 @@ PORT_RANGE = 5000 def default_binary(): - return os.getenv("CARGO_BIN_EXE_zebrad", "zebrad") + return os.getenv("CARGO_BIN_EXE_zebrad", os.path.join("..", "target", "debug", "zebrad")) def zcashd_binary(): return os.getenv("ZEBRAD", default_binary())