-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
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).