From 49e29f38343ce0389df0aecf308b0986de94c029 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 18 Jan 2022 16:59:17 -0700 Subject: [PATCH] LU-15095 tests: skip lbug_on_grant_miscount on client 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 Change-Id: Ieacd93edcce3f8de30b9308dbf3b03e10c3ebbe5 Reviewed-on: https://review.whamcloud.com/46185 Tested-by: jenkins Reviewed-by: Vladimir Saveliev Tested-by: Maloo Reviewed-by: Alexander Boyko Reviewed-by: Oleg Drokin --- lustre/tests/test-framework.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 22d914c..89da980 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -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 -- 1.8.3.1