From bcedbc2e73f387e8198b4de5aa50e79e08e6faf7 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Thu, 19 Sep 2024 18:03:06 -0300 Subject: [PATCH] restore env var --- zebra-rpc/qa/pull-tester/rpc-tests.py | 4 ++-- zebra-rpc/qa/rpc-tests/test_framework/test_framework.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zebra-rpc/qa/pull-tester/rpc-tests.py b/zebra-rpc/qa/pull-tester/rpc-tests.py index 7ac0fb6b308..b754d040400 100755 --- a/zebra-rpc/qa/pull-tester/rpc-tests.py +++ b/zebra-rpc/qa/pull-tester/rpc-tests.py @@ -184,8 +184,8 @@ def run_tests(test_handler, test_list, src_dir, build_dir, exeext, jobs=1, enabl BOLD = ('\033[0m', '\033[1m') #Set env vars - #if "ZEBRAD" not in os.environ: - # os.environ["ZEBRAD"] = build_dir + '/target/debug/zebrad' + exeext + if "CARGO_BIN_EXE_zebrad" not in os.environ: + os.environ["CARGO_BIN_EXE_zebrad"] = os.path.join("..", "target", "debug", "zebrad") tests_dir = src_dir + '/qa/rpc-tests/' diff --git a/zebra-rpc/qa/rpc-tests/test_framework/test_framework.py b/zebra-rpc/qa/rpc-tests/test_framework/test_framework.py index 453034a3161..a4290647654 100755 --- a/zebra-rpc/qa/rpc-tests/test_framework/test_framework.py +++ b/zebra-rpc/qa/rpc-tests/test_framework/test_framework.py @@ -194,10 +194,10 @@ def __init__(self): def add_options(self, parser): parser.add_option("--testbinary", dest="testbinary", - default=os.getenv("ZEBRAD", zcashd_binary()), + default=os.getenv("CARGO_BIN_EXE_zebrad", zcashd_binary()), help="zebrad binary to test") parser.add_option("--refbinary", dest="refbinary", - default=os.getenv("ZEBRAD", zcashd_binary()), + default=os.getenv("CARGO_BIN_EXE_zebrad", zcashd_binary()), help="zebrad binary to use for reference nodes (if any)") def setup_network(self):