From: Yu Jian Date: Tue, 18 Sep 2012 04:05:31 +0000 (+0800) Subject: LU-1896 tests: check Lustre version in sanity test 154 X-Git-Tag: 2.3.51~64 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=fe27fc1061c33b18de7fa034dd60a4edd69e5f36;p=fs%2Flustre-release.git LU-1896 tests: check Lustre version in sanity test 154 We need to check Lustre version to make sure the test for new fixup/feature does not run on unsupported Lustre version. Signed-off-by: Yu Jian Change-Id: I63f9c2de6f76fda4758d0c92ee924d9b22570ff6 Reviewed-on: http://review.whamcloud.com/4019 Tested-by: Hudson Reviewed-by: Wei Liu Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 6d8d4d0..cec2c8c 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -7805,6 +7805,9 @@ test_153() { run_test 153 "test if fdatasync does not crash =======================" test_154() { + [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.2.51) ]] || + { skip "Need MDS version at least 2.2.51"; return 0; } + cp /etc/hosts $DIR/$tfile fid=$($LFS path2fid $DIR/$tfile)