Skip to content

Commit

Permalink
Log ZTS test name to dmesg
Browse files Browse the repository at this point in the history
Log each test name to dmesg to help post-mortem test failures.
Specifically, to help debug #10940.

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
  • Loading branch information
tonyhutter committed Sep 17, 2020
1 parent a57f954 commit 6734bcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/zfs-tests/include/libtest.shlib
Expand Up @@ -279,6 +279,10 @@ function default_setup_noexit
typeset no_mountpoint=$4
log_note begin default_setup_noexit

# Crudely log to dmesg which test we're running for post-mortem
me=`ps a | grep -Eo '[^ ]+ksh$' | head -n 1`
echo "ZTS: running $me" > /dev/kmsg

if is_global_zone; then
if poolexists $TESTPOOL ; then
destroy_pool $TESTPOOL
Expand Down

0 comments on commit 6734bcf

Please sign in to comment.