From fe27fc1061c33b18de7fa034dd60a4edd69e5f36 Mon Sep 17 00:00:00 2001 From: Yu Jian Date: Tue, 18 Sep 2012 12:05:31 +0800 Subject: [PATCH] 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 --- lustre/tests/sanity.sh | 3 +++ 1 file changed, 3 insertions(+) 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) -- 1.8.3.1