Whamcloud - gitweb
LU-1688 test: fix the problem in test_58 of recovery_small
authorHongchao Zhang <hongchao.zhang@whamcloud.com>
Sat, 4 Aug 2012 10:21:12 +0000 (18:21 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 24 Sep 2012 06:23:03 +0000 (02:23 -0400)
in test_58 of recovery_small, the 'df' command could trigger
the eviction caused by the above 'drop_bl_callback', then
the fail of 'df' could be not thought as the fail of th test,

Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Change-Id: I226a3d4772d033182ded28caacbecdc44c7af8c4
Reviewed-on: http://review.whamcloud.com/3506
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jay J Lan <jay.j.lan@nasa.gov>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/recovery-small.sh

index 459e2ae..997bc78 100755 (executable)
@@ -1059,7 +1059,10 @@ test_58() { # bug 11546
         lctl set_param fail_loc=0
         drop_bl_callback rm -f $DIR/$tfile
         wait $pid
-        do_facet client "df $DIR"
+        # the first 'df' could tigger the eviction caused by
+        # 'drop_bl_callback', and it's normal case.
+        # but the next 'df' should return successfully.
+        do_facet client "df $DIR" || do_facet client "df $DIR"
 }
 run_test 58 "Eviction in the middle of open RPC reply processing"