Files
swift-mirror/utils/PathSanitizingFileCheck
Sergej Jaskiewicz 9fbdfdec7d [utils] Fix PathSanitizingFileCheck to support paths with "weird" chars
When absolute paths that need to be substituted by PathSanitizingFileCheck contained characters that could be part of regexp syntax, substitution didn't actually take place.

For example, substitution like BUILD_DIR='/Users/johnsmith/swift-source/Ninja-RelWithDebInfoAssert+swift-DebugAssert' didn't result in anything because of the '+' in the path.

This is an attempt to fix it.

This commit also adds the --dry-run flag to PathSanitizingFileCheck which was used to detect and debug this issue, but why not let it stay.
2019-07-10 00:55:46 +03:00

3.2 KiB
Executable File