1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

tests/ui: copy actual dir as recorded if the test passed

because it is the same thing then
This commit is contained in:
Tomas Susanka 2019-12-30 11:28:45 +00:00
parent 2eda139ac4
commit edcd4f9ccc

View File

@ -2,6 +2,7 @@ import hashlib
import re
import shutil
from contextlib import contextmanager
from distutils.dir_util import copy_tree
from pathlib import Path
import pytest
@ -80,6 +81,9 @@ def _process_tested(fixture_test_path, test_name):
)
)
else:
copy_tree(
str(fixture_test_path / "actual"), str(fixture_test_path / "recorded")
)
if (fixture_test_path / "diff.html").exists():
(fixture_test_path / "diff.html").unlink()