From 174308a077f6c19b82e7b78753c544519330f25d Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Wed, 30 Mar 2022 21:22:32 +0300 Subject: [PATCH] LU-15709 tests: t-f stopall() defect: num not initialized The following test demonstrates the defect (OSTCOUNT=2): test_0A () { local num=100 echo $num stopall echo $num after stopall } Result: == sanity test 0A: num === 100 Stopping clients: fre0107,fre0108 /mnt/lustre (opts:) ... 2 after stopall Fixes: d2d56f38da (" - make HEAD from b_post_cmd3") Test-Parameters: trivial Signed-off-by: Elena Gryaznova HPE-bug-id: LUS-10864 Reviewed-by: Alexander Zarochentsev Reviewed-by: Artem Blagodarenko Change-Id: I46648c741943f219c03f3501585051e285365578 Reviewed-on: https://review.whamcloud.com/46957 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/test-framework.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 1dfb655..d5c736b 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -4717,6 +4717,7 @@ stopall() { # The add fn does rm ${facet}active file, this would be enough # if we use do_facet only after the facet added, but # currently we use do_facet mds in local.sh + local num for num in `seq $MDSCOUNT`; do stop mds$num -f rm -f ${TMP}/mds${num}active -- 1.8.3.1