Commit 5c7993b8 authored by Adrian Sutton's avatar Adrian Sutton

devnet: Ensure geth terminates if devnet-allocs fails

parent bd7e7965
...@@ -156,6 +156,7 @@ def devnet_l1_genesis(paths): ...@@ -156,6 +156,7 @@ def devnet_l1_genesis(paths):
'--rpc.allow-unprotected-txs' '--rpc.allow-unprotected-txs'
]) ])
try:
forge = ChildProcess(deploy_contracts, paths) forge = ChildProcess(deploy_contracts, paths)
forge.start() forge.start()
forge.join() forge.join()
...@@ -168,6 +169,7 @@ def devnet_l1_genesis(paths): ...@@ -168,6 +169,7 @@ def devnet_l1_genesis(paths):
allocs = response['result'] allocs = response['result']
write_json(paths.allocs_path, allocs) write_json(paths.allocs_path, allocs)
finally:
geth.terminate() geth.terminate()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment