Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1358

TestYarnCLI fails on Windows due to line endings

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 3.0.0-alpha1
    • Fix Version/s: 2.3.0
    • Component/s: client
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The unit test fails on Windows due to incorrect line endings was used for comparing the output from command line output. Error messages are as follows.

      junit.framework.ComparisonFailure: expected:<...argument for options[]
      usage: application
      ...> but was:<...argument for options[
      ]
      usage: application
      ...>
      	at junit.framework.Assert.assertEquals(Assert.java:85)
      	at junit.framework.Assert.assertEquals(Assert.java:91)
      	at org.apache.hadoop.yarn.client.cli.TestYarnCLI.testMissingArguments(TestYarnCLI.java:878)
      

        Attachments

        1. YARN-1358.2.patch
          1 kB
          Chuan Liu
        2. YARN-1358.patch
          1 kB
          Chuan Liu

          Activity

            People

            • Assignee:
              chuanliu Chuan Liu
              Reporter:
              chuanliu Chuan Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: