public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] selftests: ublk: mark each test start and end time in dmesg
@ 2026-01-26 14:31 Alexander Atanasov
  2026-01-27  1:51 ` Ming Lei
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Atanasov @ 2026-01-26 14:31 UTC (permalink / raw)
  To: Ming Lei, Shuah Khan
  Cc: Alexander Atanasov, linux-block, linux-kselftest, linux-kernel

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.

Signed-off-by: Alexander Atanasov <alex@zazolabs.com>
---
 tools/testing/selftests/ublk/test_common.sh | 2 ++
 1 file changed, 2 insertions(+)

v1->v2:
  - rebase to latest block tree
  - include base-commit 

diff --git a/tools/testing/selftests/ublk/test_common.sh b/tools/testing/selftests/ublk/test_common.sh
index 7ff6ce79d62c..e554e89e6e67 100755
--- a/tools/testing/selftests/ublk/test_common.sh
+++ b/tools/testing/selftests/ublk/test_common.sh
@@ -121,6 +121,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 --iso-8601=sec)" | tee /dev/kmsg
 }
 
 _remove_test_files()
@@ -165,6 +166,7 @@ _cleanup_test() {
 	"${UBLK_PROG}" del -a
 
 	_remove_files
+	echo "ublk selftest: $TID done at $(date --iso-8601=sec)" | tee /dev/kmsg
 }
 
 _have_feature()

base-commit: 8e5bcc3a955a2cc4460b391f55d3b49905eb248e
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-27  1:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26 14:31 [PATCH v2] selftests: ublk: mark each test start and end time in dmesg Alexander Atanasov
2026-01-27  1:51 ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox