New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort filesystem listings #938
Conversation
kiwi/iso_tools/cdrtools.py
Outdated
| @@ -250,7 +250,8 @@ def _create_sortfile(self): | |||
| boot_files = list(os.walk(self.source_dir + '/' + self.boot_path)) | |||
| boot_files += list(os.walk(self.source_dir + '/EFI')) | |||
| for basedir, dirnames, filenames in boot_files: | |||
| for filename in filenames: | |||
| #dirnames.sort() # TODO - seems to break mocking | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left this for now. One workaround is to write it as dirnames=sorted(dirnames)
but IMHO fixing the tests would be better
da06561
to
4eab151
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks
Just the TODO should be handled, see my comment. Thanks
|
I'm fine with the changes and will merge the PR once the conflict got resolved. Thanks |
using tox -v -e unit_py2_7 -- -vv ./test/unit/iso_tools_cdrtools_test.py
so that kiwi works in a reproducible way in spite of indeterministic filesystem readdir order and http://bugs.python.org/issue30461 See https://reproducible-builds.org/ for why this is good.
|
resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
yes that's nice, thanks |
Change proposed in this pull request:
Sort filesystem listings
so that kiwi works in a reproducible way
in spite of indeterministic filesystem readdir order
and http://bugs.python.org/issue30461
See https://reproducible-builds.org/ for why this is good.
Notes: