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

tools: build mocks uses sorted

This commit is contained in:
Tomas Susanka 2018-01-26 14:27:02 +01:00 committed by Jan Pochyla
parent 368ba963a6
commit d23a236616

View File

@ -84,8 +84,8 @@ def build_module(mod_file, dest):
def build_directory(dir, dest): def build_directory(dir, dest):
print("Building mocks for", dir, "to", dest) print("Building mocks for", dir, "to", dest)
for pkg in os.listdir(dir): for pkg in sorted(os.listdir(dir)):
for mod in os.listdir(os.path.join(dir, pkg)): for mod in sorted(os.listdir(os.path.join(dir, pkg))):
build_module(os.path.join(dir, pkg, mod), dest) build_module(os.path.join(dir, pkg, mod), dest)