Tetsuo Handa
from-****@I-lov*****
Fri Sep 30 09:21:41 JST 2011
Thomas Gstadtner wrote: > the testall.sh script in the kernel_test directory of > {ccs,tomoyo}-tools runs "dmesg -c" which prints and clears the kernel > ring buffer when run as root. > This makes it impractical when running automated tests, because the > kernel buffer should not be cleared for something like this. > > IMHO this should be removed, unless there is a good reason to keep > this behavior. > > Affected are ccs-tools and tomoyo-tools 2.4 and 2.5. My usage of testall.sh is (1) Boot the system. (2) Login and become root. (3) Clear the kernel ring buffer by "dmesg -c" (4) Run testall.sh (5) Check for problems (e.g. kernel oops) triggered by testall.sh (6) Rerun testall.sh (7) Recheck for problems triggered by testall.sh (8) Shutdown the system. I'm embedding "dmesg -c" into testall.sh in order to make sure that "I don't forget to check kernel messages" and "only kernel messages related to each trial are printed". If you don't like this behavior, you can remove "dmesg -c".