mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00
hotfix for py test (#17)
This commit is contained in:
parent
cb8c6ebf81
commit
012f5b34ec
@ -44,6 +44,7 @@ class TestNode:
|
|||||||
def __init__(
|
def __init__(
|
||||||
self, node_type, index, data_dir, rpc_url, binary, config, log, rpc_timeout=10
|
self, node_type, index, data_dir, rpc_url, binary, config, log, rpc_timeout=10
|
||||||
):
|
):
|
||||||
|
assert os.path.exists(binary), ("blockchain binary not found: %s" % binary)
|
||||||
self.node_type = node_type
|
self.node_type = node_type
|
||||||
self.index = index
|
self.index = index
|
||||||
self.data_dir = data_dir
|
self.data_dir = data_dir
|
||||||
|
@ -309,7 +309,9 @@ class TestFramework:
|
|||||||
ionion_node_rpc_url,
|
ionion_node_rpc_url,
|
||||||
file_to_upload,
|
file_to_upload,
|
||||||
):
|
):
|
||||||
assert os.path.exists(self.cli_binary), "%s should be exist" % self.cli_binary
|
assert os.path.exists(self.cli_binary), (
|
||||||
|
"zgs CLI binary not found: %s" % self.cli_binary
|
||||||
|
)
|
||||||
upload_args = [
|
upload_args = [
|
||||||
self.cli_binary,
|
self.cli_binary,
|
||||||
"upload",
|
"upload",
|
||||||
@ -417,15 +419,6 @@ class TestFramework:
|
|||||||
self.token_contract_path = os.path.abspath(self.options.token_contract)
|
self.token_contract_path = os.path.abspath(self.options.token_contract)
|
||||||
self.mine_contract_path = os.path.abspath(self.options.mine_contract)
|
self.mine_contract_path = os.path.abspath(self.options.mine_contract)
|
||||||
|
|
||||||
assert os.path.exists(self.blockchain_binary), (
|
|
||||||
"blockchain binary not found: %s" % self.blockchain_binary
|
|
||||||
)
|
|
||||||
assert os.path.exists(self.zgs_binary), (
|
|
||||||
"zgs binary not found: %s" % self.zgs_binary
|
|
||||||
)
|
|
||||||
assert os.path.exists(self.cli_binary), (
|
|
||||||
"zgs CLI binary not found: %s" % self.cli_binary
|
|
||||||
)
|
|
||||||
assert os.path.exists(self.contract_path), (
|
assert os.path.exists(self.contract_path), (
|
||||||
"%s should be exist" % self.contract_path
|
"%s should be exist" % self.contract_path
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user