In order to get identical test results we canonicalize path names that we pass into test code. We use posix path separators because they work sufficiently well on all platforms (including windows).
(path)
| 723 | |
| 724 | |
| 725 | def CanonicalizePath(path): |
| 726 | """In order to get identical test results we canonicalize path |
| 727 | names that we pass into test code. We use posix path separators |
| 728 | because they work sufficiently well on all platforms (including |
| 729 | windows).""" |
| 730 | # For some reason this doesn't work on winows: |
| 731 | # return str(pathlib.PurePosixPath(path)) |
| 732 | return path.replace(os.path.sep, '/') |
| 733 | |
| 734 | |
| 735 | def RunTest(info, options, variables, verbose_level=0): |