[ 
https://issues.apache.org/jira/browse/HDFS-5409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13803021#comment-13803021
 ] 

Chris Nauroth commented on HDFS-5409:
-------------------------------------

Suggestion: change the assertion so that it ignores differences in line endings 
when comparing 2 XML files.

> TestOfflineEditsViewer#testStored fails on Windows due to CRLF line endings 
> in editsStored.xml from git checkout
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5409
>                 URL: https://issues.apache.org/jira/browse/HDFS-5409
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: test
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Chris Nauroth
>            Priority: Minor
>
> When doing a git checkout on Windows, 
> hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml has CRLF 
> line endings.  The offline edits viewer tool generates XML output with LF 
> line endings.  This causes {{TestOfflineEditsViewer#testStored}} to fail when 
> asserting that editsStored.xml and editsStoredParsed.xml have the same 
> content.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to