浏览代码

practracker: sort filenames and directories.

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

Closes ticket 29882.
Nick Mathewson 6 年之前
父节点
当前提交
a20a2025a5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scripts/maint/practracker/util.py

+ 2 - 1
scripts/maint/practracker/util.py

@@ -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
-