Sort all os.listdir and os.walk to keep things more reproducible

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-03-10 00:00:04 +00:00
parent 2e3f4c1484
commit a9160d2217
6 changed files with 21 additions and 16 deletions

View File

@@ -20,9 +20,9 @@ https://github.com/cirosantilli/linux-kernel-module-cheat#release-zip
def timed_main(self):
self.zip_files.append(self.env['qcow2_file'])
self.zip_files.append(self.env['linux_image'])
for root, dirs, files in os.walk(self.env['baremetal_build_dir']):
for file in files:
path = os.path.join(root, file)
for root, dirnames, filenames in os.walk(self.env['baremetal_build_dir']):
for filename in sorted(filenames):
path = os.path.join(root, filename)
if os.path.splitext(path)[1] == self.env['baremetal_build_ext']:
self.zip_files.append(path)