practracker: sort filenames and directories.

This helps ensure that we'll get output in a stable order.

Closes ticket 29882.
This commit is contained in:
Nick Mathewson
2019-03-25 09:08:04 -04:00
parent 9d0ce0afcc
commit a20a2025a5
+2 -1
View File
@@ -11,6 +11,8 @@ def get_tor_c_files(tor_topdir):
files_list = []
for root, directories, filenames in os.walk(tor_topdir):
directories.sort()
filenames.sort()
for filename in filenames:
# We only care about .c files
if not filename.endswith(".c"):
@@ -24,4 +26,3 @@ def get_tor_c_files(tor_topdir):
files_list.append(full_path)
return files_list