Change the order devices are tested in
Test the digitalbitbox first because it will self wipe if the wrong password is given too many times (by other tests) which causes test to fail. Then, group up tests by simulator, those with simulators started at the beginning (dbb and coldcard) go first. Then those with simulators started for each test (trezor and keepkey). Lastly the test that requires a physical device.
This commit is contained in:
parent
1c33312bb1
commit
54e14ba301
@ -49,15 +49,15 @@ if not args.no_trezor or not args.no_coldcard or args.ledger or not args.no_bitb
|
|||||||
# Start bitcoind
|
# Start bitcoind
|
||||||
rpc, userpass = start_bitcoind(args.bitcoind)
|
rpc, userpass = start_bitcoind(args.bitcoind)
|
||||||
|
|
||||||
if not args.no_trezor:
|
|
||||||
suite.addTest(trezor_test_suite(args.trezor, rpc, userpass, args.interface))
|
|
||||||
if not args.no_coldcard:
|
|
||||||
suite.addTest(coldcard_test_suite(args.coldcard, rpc, userpass, args.interface))
|
|
||||||
if args.ledger:
|
|
||||||
suite.addTest(ledger_test_suite(rpc, userpass, args.interface))
|
|
||||||
if not args.no_bitbox:
|
if not args.no_bitbox:
|
||||||
suite.addTest(digitalbitbox_test_suite(rpc, userpass, args.bitbox, args.interface))
|
suite.addTest(digitalbitbox_test_suite(rpc, userpass, args.bitbox, args.interface))
|
||||||
|
if not args.no_coldcard:
|
||||||
|
suite.addTest(coldcard_test_suite(args.coldcard, rpc, userpass, args.interface))
|
||||||
|
if not args.no_trezor:
|
||||||
|
suite.addTest(trezor_test_suite(args.trezor, rpc, userpass, args.interface))
|
||||||
if not args.no_keepkey:
|
if not args.no_keepkey:
|
||||||
suite.addTest(keepkey_test_suite(args.keepkey, rpc, userpass, args.interface))
|
suite.addTest(keepkey_test_suite(args.keepkey, rpc, userpass, args.interface))
|
||||||
|
if args.ledger:
|
||||||
|
suite.addTest(ledger_test_suite(rpc, userpass, args.interface))
|
||||||
result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(suite)
|
result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(suite)
|
||||||
sys.exit(not result.wasSuccessful())
|
sys.exit(not result.wasSuccessful())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user