From: Nathaniel Clark Date: Wed, 4 Jun 2014 04:51:12 +0000 (+0800) Subject: LU-5133 tests: Add version check in sanity/238 X-Git-Tag: 2.5.60~6 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=7560e592581453750a800aa098b3cdfa69a37f71 LU-5133 tests: Add version check in sanity/238 Fix for LU-4659 was not included until after 2.5.57 and after 2.5.1. Ensure MDS is running one of these valid branches before allowing the test to run. Test-Parameters: alwaysuploadlogs envdefinitions=ONLY=238 \ ossjob=lustre-b2_5 mdsjob=lustre-b2_5 ossbuildno=42 mdsbuildno=42 \ testlist=sanity Signed-off-by: Nathaniel Clark Signed-off-by: Jian Yu Change-Id: If0601c048e6641b2cfcd27b7a6f62d8662440018 Reviewed-on: http://review.whamcloud.com/10559 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Patrick Farrell Reviewed-by: Fan Yong Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index edaed12..bc2698cd 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -12626,6 +12626,13 @@ run_test 237 "Verify name_to_handle_at/open_by_handle_at syscalls" # LU-4659 linkea consistency test_238() { + local server_version=$(lustre_version_code $SINGLEMDS) + + [[ $server_version -gt $(version_code 2.5.57) ]] || + [[ $server_version -gt $(version_code 2.5.1) && + $server_version -lt $(version_code 2.5.50) ]] || + { skip "Need MDS version at least 2.5.58 or 2.5.2+"; return; } + touch $DIR/$tfile ln $DIR/$tfile $DIR/$tfile.lnk touch $DIR/$tfile.new