sscargal / pmemchk

MIT License
0 stars 1 forks source link

[Linux Rules] Change INFO to SKIPPED if the file is not found #155

Closed sscargal closed 2 years ago

sscargal commented 2 years ago

All rules currently return an INFO message/status when the input file name doesn't exist:

  # Exit the function with INFO message if the file to process doesn't exist
  if [[ ! -f ${FNAME} ]] ; then
    info_msg " Could not process '${FNAME}'. File not found"
    REPORT_COUNT_INFO=$((REPORT_COUNT_INFO+1)) # Increment the INFO count
    return
  fi

This should be changed to SKIPPED to match the rules under 'optane'

  # Exit the function with SKIPPED message if the file to process doesn't exist
  if [[ ! -f ${FNAME} ]] ; then
    rule_result SKIPPED "Could not process '${FNAME}'. File not found"
    return
  fi