Commit 067af0a7 authored by inkhey's avatar inkhey

sort variations path to avoid trouble with different result order of glob

parent 97b210ca
Pipeline #148632 canceled with stages
in 40 seconds
......@@ -104,9 +104,11 @@ class FolderAvatarTheme(AvatarTheme):
self.layers_name = layers_name
layers = []
for layer_number, layer_name in enumerate(layers_name):
file_list = glob.glob(
LAYER_FILE_IMAGE_PATTERN.format(
folder_path=self.folder_path, layer_name=glob.escape(layer_name)
file_list = sorted(
glob.glob(
LAYER_FILE_IMAGE_PATTERN.format(
folder_path=self.folder_path, layer_name=glob.escape(layer_name)
)
)
)
assert file_list
......
tests/test_img/saved_bird_avatar.png

53.1 KB | W: | H:

tests/test_img/saved_bird_avatar.png

53.8 KB | W: | H:

tests/test_img/saved_bird_avatar.png
tests/test_img/saved_bird_avatar.png
tests/test_img/saved_bird_avatar.png
tests/test_img/saved_bird_avatar.png
  • 2-up
  • Swipe
  • Onion skin
tests/test_img/saved_cat_avatar.png

41.4 KB | W: | H:

tests/test_img/saved_cat_avatar.png

45.9 KB | W: | H:

tests/test_img/saved_cat_avatar.png
tests/test_img/saved_cat_avatar.png
tests/test_img/saved_cat_avatar.png
tests/test_img/saved_cat_avatar.png
  • 2-up
  • Swipe
  • Onion skin
tests/test_img/saved_monster_avatar.png

1.48 KB | W: | H:

tests/test_img/saved_monster_avatar.png

1.38 KB | W: | H:

tests/test_img/saved_monster_avatar.png
tests/test_img/saved_monster_avatar.png
tests/test_img/saved_monster_avatar.png
tests/test_img/saved_monster_avatar.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment