set_sudo in evergreen.yml can cause errexit

XMLWordPrintableJSON

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

      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=$?
      

            Assignee:
            Jonathan Abrahams (Inactive)
            Reporter:
            Jonathan Abrahams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: