Whamcloud - gitweb
EX-7507 test: fix sanity-lfsck test_8
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 4 Oct 2023 01:15:39 +0000 (21:15 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 21 Oct 2023 17:41:00 +0000 (17:41 +0000)
The backport of LU-15738 is not correct, which may cause test failure.

Fixes: 779c10b7c64 ("LU-15738 test: check lfsck status before starting")
Test-Parameters: trivial testlist=sanity-lfsck env=ONLY=8,ONLY_REPEAT=10
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ibbc5b576db7d502095257031dd4619fe5103df3b
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52774
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-lfsck.sh

index 5bec755..5ca523e 100755 (executable)
@@ -968,7 +968,7 @@ test_8()
 
        #define OBD_FAIL_LFSCK_DELAY2           0x1601
        do_facet $SINGLEMDS $LCTL set_param fail_loc=0x1601
-       $START_NAMESPACE || error "(16) Fail to start LFSCK for namespace!"
+       $START_NAMESPACE
        wait_update_facet $SINGLEMDS "$LCTL get_param -n \
                mdd.${MDT_DEV}.lfsck_namespace |
                awk '/^status/ { print \\\$2 }'" "scanning-phase1" 32 || {