tmf: Fix remote.ui test on Windows due to line separators
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Mon, 21 Dec 2015 04:07:49 +0000 (23:07 -0500)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 5 Jan 2016 15:53:58 +0000 (10:53 -0500)
commit6091c9bcde5a7c04593b0f18dc554539951a731a
tree160cb79e3c746703676b0992cf01d3caaaa98030
parent3bd360ceec5bd7791f6476cab5f99dc665f932ae
tmf: Fix remote.ui test on Windows due to line separators

This can happen when core.autocrlf is set to false in the git config.
The file containing an expected string is then not converted to crlf and
since the generated string in the test contains crlf, the comparison
fails.

To make tests consistent everywhere, I suggest to disable the autocrlf
of git directly in the Git repository using .gitattributes, see
http://git-scm.com/docs/gitattributes

And to fix the test on Windows, we can always convert the generated
String to lf line endings.

Change-Id: Ife8912ace7895ebca4d19adb53c6ba169ca2d003
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/63080
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
.gitattributes [new file with mode: 0644]
tmf/org.eclipse.tracecompass.tmf.remote.ui.tests/src/org/eclipse/tracecompass/tmf/remote/ui/tests/fetch/RemoteImportProfilesWriterTest.java
This page took 0.025819 seconds and 5 git commands to generate.