diff --git a/Makefile b/Makefile index 46c37a387..4e795d2a5 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ clean_cross: ## clean mpy-cross build $(MAKE) -C vendor/micropython/mpy-cross clean test: ## run unit tests - cd src/tests ; ./run_tests.sh + cd tests ; ./run_tests.sh flash: ## flash firmware using st-flash st-flash write $(STMHAL_BUILD_DIR)/firmware0.bin 0x8000000 diff --git a/src/trezor/config.py b/src/trezor/config.py index a342d040b..e7babd2ff 100644 --- a/src/trezor/config.py +++ b/src/trezor/config.py @@ -12,6 +12,7 @@ else: def _load(): + global _mock try: with open(_file, 'rb') as f: while True: @@ -26,6 +27,7 @@ def _load(): def _save(): + global _mock with open(_file, 'wb') as f: for k, v in _mock.items(): f.write(ustruct.pack('