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

Intermittent test failure in schematron CLI tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.1.0
    • CLI, Infrastructure, QA
    • None

    Description

      In a recent GitHub Actions tests, there was a failure with checking the error code of a test:

      https://github.com/apache/incubator-daffodil/pull/477/checks?check_run_id=1745505882#step:10:200

      Based on the output, it's looks like Daffodil did the right thing, but then failed to detect the correct error code. The error makes this clear:

      Error: Test org.apache.daffodil.schematron.TestEmbedded.extends2 failed: unparseable ec, D:\a\incubator-daffodil\incubator-daffodil>

      This "unparseable ec" is expecting an integer, but instead it got the command prompt. Looking at the output, we can see that we are sending the "echo %errorlevel%" command before we get to the prompt, and our code seems to be accepting the command prompt as a match for the error code.

      Perhaps we need to have an expect that looks for the prompt before sending new line?

      Attachments

        Activity

          People

            jw3 John Wass
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: