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

Clearing the dmesg buffer should not errexit in evergreen.yml

    • Fully Compatible
    • ALL
    • v3.4
    • TIG 2017-03-27

      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).

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

              Created:
              Updated:
              Resolved: