From: Elena Gryaznova Date: Wed, 30 Mar 2022 18:22:32 +0000 (+0300) Subject: LU-15709 tests: t-f stopall() defect: num not initialized X-Git-Tag: 2.15.51~141 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=174308a077f6c19b82e7b78753c544519330f25d;p=fs%2Flustre-release.git 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 --- 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