1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-13 17:00:59 +00:00

tests/ui: mkdir for new test

This commit is contained in:
Tomas Susanka 2020-01-15 12:55:37 +00:00
parent 7c7ed59678
commit 783fa80d19

View File

@ -95,6 +95,8 @@ def screen_recording(client, request):
else:
raise ValueError("Invalid 'ui' option.")
if not fixture_test_path.exists():
fixture_test_path.mkdir()
# remove previous files
shutil.rmtree(screen_path, ignore_errors=True)
screen_path.mkdir()