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

TestYarnCLI fails on Windows due to line endings

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0, 3.0.0-alpha1
    • 2.3.0
    • client
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: