From: Jian Yu Date: Thu, 26 Sep 2019 17:51:22 +0000 (-0700) Subject: LU-11670 tests: do not fail the first half in sanityn test 103 X-Git-Tag: 2.12.90~79 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a88d0aa76c62e3074a05e869c9f0ba7ac128300f LU-11670 tests: do not fail the first half in sanityn test 103 There are two halves in sanityn test 103. The first half is to reproduce the problem of incorrect size when using lockahead and the second half is to verify that the fix works. Sometimes, the problem cannot be reproduced in the first half test, so we should not fail the whole test. Test-Parameters: trivial fstype=zfs \ mdscount=2 mdtcount=4 testlist=sanityn,sanityn,sanityn Test-Parameters: trivial fstype=ldiskfs \ mdscount=2 mdtcount=4 testlist=sanityn,sanityn,sanityn Change-Id: Ib6c82bfe512ac072104abfcb406e2ef1bd6a6a02 Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/36303 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Li Xi Reviewed-by: Andreas Dilger Reviewed-by: Patrick Farrell --- diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 7d40075..736b742 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -4768,7 +4768,7 @@ test_103() { lockahead_test -d $DIR/$tdir -D $DIR2/$tdir -t $testnum -f $tfile rc=$? if [ $rc -eq 0 ]; then - error "Lockahead test $testnum passed with fail_loc set, ${rc}" + echo "This doesn't work 100%, but this is just reproducing the bug, not testing the fix, so OK to not fail test." fi # guarantee write commit timeout has expired