YARN-1358. TestYarnCLI fails on Windows due to line endings. Contributed by Chuan Liu.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1537305 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Nauroth 2013-10-30 21:13:05 +00:00
parent 218ef59d89
commit fc2a13c347
2 changed files with 7 additions and 4 deletions

View File

@ -165,6 +165,9 @@ Release 2.2.1 - UNRELEASED
YARN-1357. TestContainerLaunch.testContainerEnvVariables fails on Windows. YARN-1357. TestContainerLaunch.testContainerEnvVariables fails on Windows.
(Chuan Liu via cnauroth) (Chuan Liu via cnauroth)
YARN-1358. TestYarnCLI fails on Windows due to line endings. (Chuan Liu via
cnauroth)
Release 2.2.0 - 2013-10-13 Release 2.2.0 - 2013-10-13
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -875,8 +875,8 @@ public void testMissingArguments() throws Exception {
ApplicationCLI cli = createAndGetAppCLI(); ApplicationCLI cli = createAndGetAppCLI();
int result = cli.run(new String[] { "-status" }); int result = cli.run(new String[] { "-status" });
Assert.assertEquals(result, -1); Assert.assertEquals(result, -1);
Assert.assertEquals("Missing argument for options\n" Assert.assertEquals(String.format("Missing argument for options%n%1s",
+ createApplicationCLIHelpMessage(), sysOutStream.toString()); createApplicationCLIHelpMessage()), sysOutStream.toString());
sysOutStream.reset(); sysOutStream.reset();
NodeCLI nodeCLI = new NodeCLI(); NodeCLI nodeCLI = new NodeCLI();
@ -885,8 +885,8 @@ public void testMissingArguments() throws Exception {
nodeCLI.setSysErrPrintStream(sysErr); nodeCLI.setSysErrPrintStream(sysErr);
result = nodeCLI.run(new String[] { "-status" }); result = nodeCLI.run(new String[] { "-status" });
Assert.assertEquals(result, -1); Assert.assertEquals(result, -1);
Assert.assertEquals("Missing argument for options\n" Assert.assertEquals(String.format("Missing argument for options%n%1s",
+ createNodeCLIHelpMessage(), sysOutStream.toString()); createNodeCLIHelpMessage()), sysOutStream.toString());
} }
private void verifyUsageInfo(YarnCLI cli) throws Exception { private void verifyUsageInfo(YarnCLI cli) throws Exception {