The "path" recorded for timing purposes is only used as a key into a dictionary. It is never used as an actual path to a filesystem API, therefore we should use '/' as the canonical separator so that Unix and Windows machines can share timing data. This also ensures that the lit testing works across platforms.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@jmorse, could you try this out to see if it fixes the issues you were seeing before? LGTM, assuming it fixes the Windows issue.
llvm/utils/lit/lit/Test.py | ||
---|---|---|
265–267 | Could we use getFullName() here? Or if the config-qualified name is undesirable, we could extract this into Test::getName(). def getFullName(self): return self.suite.config.name + ' :: ' + '/'.join(self.path_in_suite) |
llvm/utils/lit/lit/Test.py | ||
---|---|---|
265–267 | All of the timing data is stored per test suite, so prefixing the suite name in this context doesn't solve anything. As to factoring that out, sure. We can do that. |
Could we use getFullName() here? Or if the config-qualified name is undesirable, we could extract this into Test::getName().