1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

core: drop unused env variables (TREZOR_TEST, TREZOR_SAVE_SCREEN)

This commit is contained in:
matejcik 2020-01-15 16:54:13 +01:00
parent 8dce2cf98c
commit 2294fb0453
3 changed files with 1 additions and 13 deletions

View File

@ -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

View File

@ -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:

View File

@ -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.