Whamcloud - gitweb
LU-15095 tests: skip lbug_on_grant_miscount on client 85/46185/5
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 18 Jan 2022 23:59:17 +0000 (16:59 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 21 Jan 2022 20:13:18 +0000 (20:13 +0000)
Do not try to specify the lbug_on_grant_miscount=1 module parameter
on client-only builds (el7.9, pcc64le, aarch64) as this is a server
parameter and will not be present if the client is built without
HAVE_SERVER_SUPPORT.  Otherwise, loading ptlrpc.ko will fail.

Test-Parameters: trivial testlist=sanityn clientdistro=el7.9
Fixes: 2c787065441e ("LU-15095 target: lbug_on_grant_miscount module parameter")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ieacd93edcce3f8de30b9308dbf3b03e10c3ebbe5
Reviewed-on: https://review.whamcloud.com/46185
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Vladimir Saveliev <vlaidimir.saveliev@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/test-framework.sh

index 22d914c..89da980 100755 (executable)
@@ -753,7 +753,9 @@ load_modules_local() {
        fi
        load_module ../lnet/klnds/$LNETLND
        load_module obdclass/obdclass
-       MODOPTS_PTLRPC=${MODOPTS_PTLRPC:-"lbug_on_grant_miscount=1"}
+       if ! client_only; then
+               MODOPTS_PTLRPC=${MODOPTS_PTLRPC:-"lbug_on_grant_miscount=1"}
+       fi
        load_module ptlrpc/ptlrpc
        load_module ptlrpc/gss/ptlrpc_gss
        load_module fld/fld