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

Clearing the dmesg buffer should not errexit in evergreen.yml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.18, 3.5.5
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4
    • Sprint:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: