Whamcloud - gitweb
LU-3313 tests: Skip sanityn test_51b 40/6340/2
authorJames Nunez <james.a.nunez@intel.com>
Wed, 15 May 2013 03:22:25 +0000 (21:22 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 8 Jul 2013 16:52:12 +0000 (16:52 +0000)
sanityn test_51b now checks the metadata server version and
will run the test for versions 2.3.59 and above. The test will be
skipped for all other server versions.

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I040a77a3564e4801413ff342519ba10c54583e70
Reviewed-on: http://review.whamcloud.com/6340
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanityn.sh

index 56c3da6..951c1bd 100644 (file)
@@ -2300,6 +2300,9 @@ test_51a() {
 run_test 51a "layout lock: refresh layout should work"
 
 test_51b() {
 run_test 51a "layout lock: refresh layout should work"
 
 test_51b() {
+       [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.3.59) ]] ||
+               { skip "Need MDS version at least 2.3.59"; return 0; }
+
        local tmpfile=`mktemp`
 
        # create an empty file
        local tmpfile=`mktemp`
 
        # create an empty file