On Mon, Jan 26, 2026 at 02:31:57PM +0000, Alexander Atanasov wrote: > 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 <[email protected]> > --- > 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
As we talked, it could be more readable to follow blktests's date format of `date "+%F %T"`, please do it in V3. Thanks, Ming
