Clearing the dmesg buffer should not errexit in evergreen.yml

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Jonathan Abrahams (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: