From 0b00e318e27a1017f0b1610baae2cd960bb07991 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Fri, 10 Apr 2020 11:06:38 +0300 Subject: [PATCH] LU-13444 tests: sanity to set PTLDEBUG otherwise any server remount reset full debug to the default value different from full debug we want in sanity. Signed-off-by: Alex Zhuravlev Change-Id: I2b5c5a4d2a62d11f0327686b11f9ab8f16b47b4f Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/38194 Reviewed-by: Yang Sheng Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 3772861..9cc3d087 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -180,7 +180,11 @@ echo # add a newline after mke2fs. umask 077 OLDDEBUG=$(lctl get_param -n debug 2> /dev/null) -lctl set_param debug=-1 2> /dev/null || true + +# ensure all internal functions know we want full debug +export PTLDEBUG=all +lctl set_param debug=$PTLDEBUG 2> /dev/null || true + test_0a() { touch $DIR/$tfile $CHECKSTAT -t file $DIR/$tfile || error "$tfile is not a file" -- 1.8.3.1