Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30107

set_sudo in evergreen.yml can cause errexit

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • TIG 2017-10-23

    Description

      The expansion key set_sudo can cause an errexit, since it uses the following logic:

      set -o | grep errexit | grep on
      

      It would better if we did the following:

      set -o > /tmp/settings.log
      set +o errexit
      grep errexit /tmp/settings.log | grep on
      errexit_on=$?
      

      Attachments

        Activity

          People

            jonathan.abrahams Jonathan Abrahams
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: