[wp-trac] [WordPress Trac] #31432: Unit tests are sensitive to line endings
WordPress Trac
noreply at wordpress.org
Thu Mar 19 04:42:45 UTC 2015
#31432: Unit tests are sensitive to line endings
------------------------------+------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+------------------
Description changed by SergeyBiryukov:
Old description:
> 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.
New description:
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 #31430.
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#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list