Whamcloud - gitweb
LU-2237 tests: rename conf-sanity::test_61 as test_65
authorFan Yong <yong.fan@whamcloud.com>
Sun, 4 Nov 2012 07:41:51 +0000 (15:41 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 16 Feb 2013 14:36:29 +0000 (09:36 -0500)
To make it to be consistent with master branch.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I5cf281c74dbe66f742353843c813f6724340442a
Reviewed-on: http://review.whamcloud.com/4456
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
lustre/tests/conf-sanity.sh

index cb8a382..8511270 100644 (file)
@@ -2761,7 +2761,7 @@ test_60() { # LU-471
 }
 run_test 60 "check mkfs.lustre --mkfsoptions -E -O options setting"
 
-test_61() { # LU-2237
+test_65() { # LU-2237
        # Currently, the test is only valid for ldiskfs backend
        [ "$FSTYPE" != "ldiskfs" ] && skip "non-ldiskfs backend" && return
 
@@ -2792,12 +2792,12 @@ test_61() { # LU-2237
 
        # restart MDS, the "last_rcvd" file should be recreated.
        start_mds || error "fail to restart the MDS"
+       stop_mds
        obj=$(do_facet $SINGLEMDS \
              "$DEBUGFS -c -R \\\"stat last_rcvd\\\" $devname" | grep Inode)
-       [ ! -z "$obj" ] || error "fail to re-create the last_rcvd"
-       stop_mds
+       [ -n "$obj" ] || error "fail to re-create the last_rcvd"
 }
-run_test 61 "re-create the lost last_rcvd file when server mount"
+run_test 65 "re-create the lost last_rcvd file when server mount"
 
 if ! combined_mgs_mds ; then
        stop mgs