Skip to content

Commit

Permalink
Merging pull request 1557
Browse files Browse the repository at this point in the history
* https://github.com/avocado-framework/avocado:
  avocado.core.loader sort directories/files alphabetically
  • Loading branch information
ldoktor committed Oct 21, 2016
2 parents b302685 + 95c211c commit 42d40b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions avocado/core/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,9 @@ def skip_non_test(exception):
else: # DEFAULT, AVAILABLE => skip missing tests
onerror = skip_non_test

for dirpath, _, filenames in os.walk(url, onerror=onerror):
for file_name in filenames:
for dirpath, dirs, filenames in os.walk(url, onerror=onerror):
dirs.sort()
for file_name in sorted(filenames):
if not file_name.startswith('.'):
for suffix in ignore_suffix:
if file_name.endswith(suffix):
Expand Down

0 comments on commit 42d40b8

Please sign in to comment.