[wp-trac] [WordPress Trac] #31432: Unit tests are sensitive to line endings
WordPress Trac
noreply at wordpress.org
Tue Feb 24 11:05:09 UTC 2015
#31432: Unit tests are sensitive to line endings
------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-----------------------------
Currently, patching unit test files with `grunt patch` on Windows changes
line endings.
This results in unexpected failures in some tests using the heredoc syntax
(`<<<`), see #31340.
We should probably set `svn:eol-style` to native for test files, like we
did for core, and do something like `str_replace( "\r\n", "\n", ... )` in
the tests with heredoc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31432>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list