Skip to content

Commit

Permalink
restore env var
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Sep 19, 2024
1 parent 8c4e538 commit e376f3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions zebra-rpc/qa/pull-tester/rpc-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'

Expand Down
4 changes: 2 additions & 2 deletions zebra-rpc/qa/rpc-tests/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 1 addition & 4 deletions zebra-rpc/qa/rpc-tests/test_framework/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@
# The number of ports to "reserve" for p2p and rpc, each
PORT_RANGE = 5000

def default_binary():
return os.getenv("CARGO_BIN_EXE_zebrad", os.path.join("..", "target", "debug", "zebrad"))

def zcashd_binary():
return os.getenv("ZEBRAD", default_binary())
return os.getenv("CARGO_BIN_EXE_zebrad", os.path.join("..", "target", "debug", "zebrad"))

def zebrad_config(datadir):
base_location = os.path.join('qa', 'base_config.toml')
Expand Down

0 comments on commit e376f3a

Please sign in to comment.