mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
tests: Return meaningful exit status in pegging test
This commit is contained in:
parent
c849ded4fe
commit
61b6ef14ff
1 changed files with 5 additions and 0 deletions
|
|
@ -416,13 +416,16 @@ try:
|
|||
assert("bitcoin" not in sidechain.getwalletinfo()["balance"])
|
||||
|
||||
print("Success!")
|
||||
exit_status = 0
|
||||
|
||||
except JSONRPCException as e:
|
||||
print("Pegging testing failed, aborting:")
|
||||
print(e.error)
|
||||
exit_status = 1
|
||||
except Exception as e:
|
||||
print("Pegging testing failed, aborting:")
|
||||
print(e)
|
||||
exit_status = 1
|
||||
|
||||
print("Stopping daemons and cleaning up")
|
||||
if bitcoin is not None:
|
||||
|
|
@ -440,3 +443,5 @@ shutil.rmtree(bitcoin2_datadir)
|
|||
shutil.rmtree(sidechain2_datadir)
|
||||
shutil.rmtree(sidechain_datadir)
|
||||
shutil.rmtree(bitcoin_datadir)
|
||||
|
||||
sys.exit(exit_status)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue