Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2599

Integration tests fail with non en_US LANG

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.6.0
    • QA

    Description

      Two CLI integration tests are dependent on the LANG of the system. To reroduce, run:

      export LANG=de_DE.UTF-8
      sbt IntegrationTest/test
      

      This results in the the following test failures:

      • org.apache.daffodil.parsing.TestCLIparsing.test_1002_CLI_Parsing_negativeTest03
      • org.apache.daffodil.parsing.TestCLIparsing.test_CLI_Parsing_XCatalog_Resolution_Failure

      These tests expect error strings like "No such file or directory". But that string comes from the system and is dependent on the LANG variable. For example, with LANG set to de_DE, you get the error "Datei oder Verzeichnis nicht gefunden" and so the integration test fails.

      Instead of checking for a specific error message, we should chnage these tests to look for something generic or just check the exit code like other tests do.

      Attachments

        Activity

          People

            slawrence Steve Lawrence
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: