From 54e14ba301ad57769261b94e9d4fc22d24de94ab Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 3 May 2019 18:56:15 -0400 Subject: [PATCH] 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. --- test/run_tests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/run_tests.py b/test/run_tests.py index 6817a61..635a9ba 100755 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -49,15 +49,15 @@ if not args.no_trezor or not args.no_coldcard or args.ledger or not args.no_bitb # Start 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: 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: 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) sys.exit(not result.wasSuccessful())