Whamcloud - gitweb
LU-13773 tests: use TESTLOG_PREFIX in run_one_logged 52/39552/2
authorJames Nunez <jnunez@whamcloud.com>
Thu, 30 Jul 2020 22:33:32 +0000 (16:33 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 13 Aug 2020 06:04:34 +0000 (06:04 +0000)
commitcf6ac632a18c3acb3534cd07b717673997a58515
tree9e13535f2ed29edbe16c21bc6ad6b5e29466e69b
parent26f26e726753d81c7aeb1d1391d903ed9786c235
LU-13773 tests: use TESTLOG_PREFIX in run_one_logged

TESTLOG_PREFIX is defined and exported in init_test_env()
in test-framework.sh.  This environment variable is defined
as $LOGDIR/$TESTSUITE. TESTLOG_PREFIX should  be used in the
definitions of test_log and zfs_debug_log.  Since the logs
created in run_one_logged() don't use the defined prefix,
this could lead to differences in the naming of the dmesg,
debug_log and test_log logs.

Let's use TESTLOG_PREFIX in the definitions of test_log and
zfs_debug_log so that changes to the prefix are reflected in
all logs.

Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I14dbe0469b7a6627d63679103c235b97f0e42b67
Reviewed-on: https://review.whamcloud.com/39552
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/test-framework.sh