summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Atanasov <alex@zazolabs.com>2026-01-29 19:19:57 +0300
committerJens Axboe <axboe@kernel.dk>2026-01-31 16:36:41 +0300
commit4e0d293af9e37c735aec574c1e69ed71f81f94b2 (patch)
tree65a2ba61dacd81bbb1f6c4fdc21140ec563ef72b
parent76334de7da404c385e18efb3640ed60ca77a899f (diff)
downloadlinux-4e0d293af9e37c735aec574c1e69ed71f81f94b2.tar.xz
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>
-rwxr-xr-xtools/testing/selftests/ublk/test_common.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/ublk/test_common.sh b/tools/testing/selftests/ublk/test_common.sh
index bbe031c94a29..dd4eff97610a 100755
--- a/tools/testing/selftests/ublk/test_common.sh
+++ b/tools/testing/selftests/ublk/test_common.sh
@@ -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()