Moves the command argument parsing to hwi.py. Instead of each function
taking args and client, they now take client and whatever else they
need. hwi.py handles the conversion from args and client to the actual
arguments.
The trezor and keepkey emulators use the same port so they cannot
be run at the same time. To work around this, the emulators are
instead started and stopped before and after each test using
unittest's setUp and tearDown functions. However, other devices
which do not have conflicts can still be run at test suite creation
time. This is still done for the coldcard.
Furthermore, since the trezor and keepkey both create and use
emulator.img files in the current working directory, when they are
started, the working directory is changed to be the one containing
the emulator executable to avoid conflicting emulator.img files
41d3fae Digital Bitbox manual tests (Andrew Chow)
a834e13 Allow providing device passwords for manual tests (Andrew Chow)
Pull request description:
Like the ledger test, but for bitbox.
Also lets you specify the password for the device. This is currently only used for the bitbox.
Tree-SHA512: 04ee87cc9b176d151c1d0367c6dca6d03b9fc1087837185180cc9ba89f97b059ef29571d6c32fa2a445ca7ab1d738c1fc7f19c76aa421c97532fcb18c757b335
106c231 Send the full amount of funds in TestSignTx to test all input types (Gregory Sanders)
Pull request description:
Also beef up the signing test a bit to try combinations of 1 to 3 inputs to catch corner cases in signing logic.
I am writing a Ledger test and this case was not failing previously because it can handle legacy or witness, but not both.
Tree-SHA512: 815d620e9051c5f031cea2fd3ff4a9a36ada07e8903c906b92b802b72dd9a0c41cc23e471b1c1ca021a7457bdef10ae424971bc5cd08060151f9110d6e3b2de3