mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 56725f8829 into merged_master (Bitcoin PR bitcoin/bitcoin#31462)
This commit is contained in:
commit
3ea91c4462
1 changed files with 9 additions and 0 deletions
|
|
@ -529,6 +529,15 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
|||
binary_cli = [get_bin_from_version(v, 'elements-cli', self.options.bitcoincli) for v in versions]
|
||||
if chain is None:
|
||||
chain = [self.chain] * num_nodes
|
||||
# Fail test if any of the needed release binaries is missing
|
||||
bins_missing = False
|
||||
for bin_path in binary + binary_cli:
|
||||
if shutil.which(bin_path) is None:
|
||||
self.log.error(f"Binary not found: {bin_path}")
|
||||
bins_missing = True
|
||||
if bins_missing:
|
||||
raise AssertionError("At least one release binary is missing. "
|
||||
"Previous releases binaries can be downloaded via `test/get_previous_releases.py -b`.")
|
||||
assert_equal(len(extra_confs), num_nodes)
|
||||
assert_equal(len(extra_args), num_nodes)
|
||||
assert_equal(len(versions), num_nodes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue