diff options
Diffstat (limited to 'tests/run-make/coverage-reports/normalize_paths.py')
-rwxr-xr-x | tests/run-make/coverage-reports/normalize_paths.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run-make/coverage-reports/normalize_paths.py b/tests/run-make/coverage-reports/normalize_paths.py new file mode 100755 index 000000000..e5777ad25 --- /dev/null +++ b/tests/run-make/coverage-reports/normalize_paths.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +from __future__ import print_function + +import sys + +# Normalize file paths in output +for line in sys.stdin: + if line.startswith("..") and line.rstrip().endswith(".rs:"): + print(line.replace("\\", "/"), end='') + else: + print(line, end='') |