From: James Simmons Date: Fri, 25 Aug 2023 22:42:23 +0000 (-0400) Subject: LU-14111 tests: only support recovery-small test 146 for 2.15.54+ X-Git-Tag: 2.15.59~175 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b034dd27dd39483e40f91ea82d3f5c62b514ec54;p=fs%2Flustre-release.git LU-14111 tests: only support recovery-small test 146 for 2.15.54+ If you running newer clients with older servers (2.15.3) then recovery-small test 146 will fail since the old servers lack the new sysfs file eviction_count. Fixes: 3c69d46e176 ("LU-14111 obdclass: count eviction per obd_device") Test-Parameters: trivial testlist=recovery-small env=ONLY=146 mdsversion=2.15.3 Change-Id: I53f6dabd305ec920e8de1d9fde407b2f2c15ba69 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52098 Reviewed-by: Andreas Dilger Reviewed-by: Shaun Tancheff Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh index 7a4ec2b..266a54a 100755 --- a/lustre/tests/recovery-small.sh +++ b/lustre/tests/recovery-small.sh @@ -3203,6 +3203,9 @@ $(do_facet mds1 $LCTL get_param -n mdt.$FSNAME-MDT0000.recovery_time_hard) run_test 145 "connect mdtlovs and process update logs after recovery expire" test_146() { + (( $MDS1_VERSION >= $(version_code 2.15.54.6) )) || + skip "Need MDS >= v2_15_54-6-g3c69d46e17 for eviction_count" + local prev_count=$(do_facet $SINGLEMDS \ $LCTL get_param -n "mdt.${mds1_svc}.eviction_count")