From 2294fb0453fd609d6f67a5682bb88b310a5a7c4c Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 15 Jan 2020 16:54:13 +0100 Subject: [PATCH] core: drop unused env variables (TREZOR_TEST, TREZOR_SAVE_SCREEN) --- core/src/apps/debug/__init__.py | 2 +- core/src/trezor/utils.py | 4 ---- docs/core/emulator/index.md | 8 -------- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/core/src/apps/debug/__init__.py b/core/src/apps/debug/__init__.py index 6366f7742..4f1004f98 100644 --- a/core/src/apps/debug/__init__.py +++ b/core/src/apps/debug/__init__.py @@ -38,7 +38,7 @@ if __debug__: current_content = None # type: Optional[List[str]] def screenshot() -> bool: - if utils.SAVE_SCREEN or save_screen: + if save_screen: ui.display.save(save_screen_directory + "/refresh-") return True return False diff --git a/core/src/trezor/utils.py b/core/src/trezor/utils.py index ea66aa240..403c38769 100644 --- a/core/src/trezor/utils.py +++ b/core/src/trezor/utils.py @@ -20,13 +20,9 @@ if __debug__: if EMULATOR: import uos - TEST = int(uos.getenv("TREZOR_TEST") or "0") DISABLE_ANIMATION = int(uos.getenv("TREZOR_DISABLE_ANIMATION") or "0") - SAVE_SCREEN = int(uos.getenv("TREZOR_SAVE_SCREEN") or "0") LOG_MEMORY = int(uos.getenv("TREZOR_LOG_MEMORY") or "0") else: - TEST = 0 - SAVE_SCREEN = 0 LOG_MEMORY = 0 if False: diff --git a/docs/core/emulator/index.md b/docs/core/emulator/index.md index 1eae65af3..773d3ca5e 100644 --- a/docs/core/emulator/index.md +++ b/docs/core/emulator/index.md @@ -74,10 +74,6 @@ Press `p` on your keyboard to capture emulator's screen. You will find a png scr ### Environment Variables -#### Auto print screen - -If ``` TREZOR_SAVE_SCREEN=1 ``` is set, the emulator makes print screen on every screen change. - #### Memory statistics If ```TREZOR_LOG_MEMORY=1``` is set, the emulator prints memory usage information after each workflow task is finished. @@ -85,7 +81,3 @@ If ```TREZOR_LOG_MEMORY=1``` is set, the emulator prints memory usage informatio #### Disable animations ```TREZOR_DISABLE_ANIMATION=1``` disables fading and other animations, which speeds up the UI workflows significantly (useful for tests). This is also requirement for UI integration tests. - -#### Tests - -```TREZOR_TEST``` informs whether device tests are to be run. Currently unused.