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

Clearing the dmesg buffer should not errexit in evergreen.yml

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.4.18, 3.5.5
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • TIG 2017-03-27

    Description

      The following code to clear the dmesg buffer exits on error and will not print out the message it was unable to clear the dmesg ring buffer:

              set -o errexit
              set -o verbose
       
              ulimit -a
              # Clear the dmesg ring buffer. The "post" phase will check dmesg for OOM messages.
              ${set_sudo}
              $sudo dmesg -c > /dev/null 2>&1
              if [ $? -eq 0 ]; then
                echo "Cleared the dmesg ring buffer"
              else
                echo "Could not clear the dmesg ring buffer"
              fi
      

      Remove the set -o errexit & set -o verbose lines (verbosity is not required).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: