mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
selftests: ublk: mark each test start and end time in dmesg
Log test start and end time in dmesg, so generated log messages during the test run can be linked to specific test from the test suite. (switch to `date +%F %T`) Signed-off-by: Alexander Atanasov <alex@zazolabs.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
76334de7da
commit
4e0d293af9
|
|
@ -126,6 +126,7 @@ _prep_test() {
|
|||
modprobe ublk_drv > /dev/null 2>&1
|
||||
UBLK_TMP=$(mktemp ublk_test_XXXXX)
|
||||
[ "$UBLK_TEST_QUIET" -eq 0 ] && echo "ublk $type: $*"
|
||||
echo "ublk selftest: $TID starting at $(date '+%F %T')" | tee /dev/kmsg
|
||||
}
|
||||
|
||||
_remove_test_files()
|
||||
|
|
@ -170,6 +171,7 @@ _cleanup_test() {
|
|||
"${UBLK_PROG}" del -a
|
||||
|
||||
_remove_files
|
||||
echo "ublk selftest: $TID done at $(date '+%F %T')" | tee /dev/kmsg
|
||||
}
|
||||
|
||||
_have_feature()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user