mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
check: log running test to dmesg
We already log the running test to system logs via "logger" but viro pointed out that we can use /dev/kmsg to insert it into dmesg as well. When looking at the serial console that could be pretty useful. Thanks to viro for the test -w suggestion too. [Eryu Guan adds timestamp to dmesg too] Signed-off-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
afadb6e595
commit
39cbe0484c
@@ -561,6 +561,10 @@ for section in $HOST_OPTIONS_SECTIONS; do
|
||||
$timestamp && echo -n " ["`date "+%T"`"]"
|
||||
[ ! -x $seq ] && chmod u+x $seq # ensure we can run it
|
||||
$LOGGER_PROG "run xfstest $seqnum"
|
||||
if [ -w /dev/kmsg ]; then
|
||||
date_time=`date +"%F %T"`
|
||||
echo "run fstests $seqnum at $date_time" > /dev/kmsg
|
||||
fi
|
||||
./$seq >$tmp.rawout 2>&1
|
||||
sts=$?
|
||||
$timestamp && _timestamp
|
||||
|
||||
Reference in New Issue
Block a user