Whamcloud - gitweb
LU-11670 tests: do not fail the first half in sanityn test 103 03/36303/3
authorJian Yu <yujian@whamcloud.com>
Thu, 26 Sep 2019 17:51:22 +0000 (10:51 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Oct 2019 03:38:10 +0000 (03:38 +0000)
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 <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36303
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <farr0186@gmail.com>

index 7d40075..736b742 100755 (executable)
@@ -4768,7 +4768,7 @@ test_103() {
        lockahead_test -d $DIR/$tdir -D $DIR2/$tdir -t $testnum -f $tfile
        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."
        # guarantee write commit timeout has expired