se2 (duress wallet) tests need to run without --eff

This commit is contained in:
scgbckbone 2023-09-08 12:10:15 +02:00 committed by doc-hex
parent 4fb9148cfd
commit d497e5006e

View File

@ -240,8 +240,10 @@ def main():
test_args = ["--eject"] + DEFAULT_SIMULATOR_ARGS + ["--set", "vidsk=1"]
if test_module == "test_bip39pw.py":
test_args = []
if test_module == "test_unit.py":
test_args = ["--set", "nfc=1"] # test_nvram_mk4 needs to run without --eff
if test_module in ["test_unit.py", "test_se2.py"]:
# test_nvram_mk4 needs to run without --eff
# se2 duress wallet activated as ephemeral seed requires proper `settings.load`
test_args = ["--set", "nfc=1"]
ec, failed_tests = run_tests_with_simulator(test_module, simulator_args=test_args,
pytest_k=args.pytest_k, pdb=args.pdb,
failed_first=args.ff)