Make raw-output-tests ignore changes in absolute path of Chromium repo.
Before this change, tests of raw output of the rewriter (i.e. tests run without passing --apply-edits to tools/clang/scripts/test_tool.py) might need to encode the full, absolute path in the test expectations. This meant that the tests wouldn't work on another developer's machine (where Chromium repo might be in a different location). After this change: - tools/clang/rewrite_raw_ptr_fields/tests/gen-*-expected.txt expectation files use paths delative to the rewrite_raw_ptr_fields/tests/ directory (rather than hardcoding a value of .../lukasza/src/chromium4/src/tools/clang/rewrite_raw_ptr_fields/tests - tools/clang/scripts/test_tool.py normalizes paths in the raw output (only if invoked without --apply-edits) to make the paths relative to the tests directory Bug: 1069567 Change-Id: I03c54374bb861904e439e677a271b0dec1502b67 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282888 Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Bartek Nowierski <bartekn@chromium.org> Cr-Commit-Position: refs/heads/master@{#786330}
Showing
Please register or sign in to comment