Commit 5c17af4
authored
[clang-tools-extra][test] Ensure file is writeable after copying (#157728)
After #157572, the invocation to clang-tidy fails w/ `Could not open
<...>/crlf.cpp.tmp.dir/Inputs/crlf/crlf.cpp for writing` if run in an
environment where the source tree is mounted read-only. This is because
`cat` was creating a new file in a writeable dir, but running `cp`
preserves the readonly file permissions from the source tree.1 parent 27c5430 commit 5c17af4
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
0 commit comments