Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-18217

config.sh#extractExecutionResults does not fail on wrong input

    XMLWordPrintableJSON

Details

    Description

      If the BashJavaUtils fail, and config.sh#extractExecutionResults is called with the exception output, which does not contain the expected lines, then it will not detect an error.

      execution_results=$(echo "${output}" | grep ${EXECUTION_PREFIX})
      num_lines=$(echo "${execution_results}" | wc -l)
          if [[ ${num_lines} -ne ${expected_lines} ]]; then
      

      Apparently, even if execution_results is empty, $(echo "${execution_results}" | wc -l) returns 1.

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: