MCPcopy Create free account
hub / github.com/WebAssembly/wabt / CanonicalizePath

Function CanonicalizePath

test/run-tests.py:725–732  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

723
724
725def 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
735def RunTest(info, options, variables, verbose_level=0):

Callers 1

RunTestFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected