Make run_bindings_tests.py presubmit test run on Windows
Added checks to see if the test is being run on windows and if so replaced the backslashes with forward slashes. I also changed the file open to write the file in binary so that line endings are not converted. Change diffing tool being used from diff(1) to Python's difflib module. diff(1) is a Unix diffing tool so it does not run on Windows. Python's difflib module will work on all computers and the speed of the module won't be an issue because there is a fairly small number of test files. Bug: 929019 Change-Id: I24e43f6599a8ce839af4dc2cec18dc56acd13bad Reviewed-on: https://chromium-review.googlesource.com/c/1479309Reviewed-by:Hitoshi Yoshida <peria@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Commit-Queue: Allison Pastewka <alpastew@microsoft.com> Cr-Commit-Position: refs/heads/master@{#636956}
Showing
Please register or sign in to comment