From 85639923b9583c9c62a6653fe133b9014f216bb2 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Sat, 4 Aug 2012 18:21:12 +0800 Subject: [PATCH] LU-1688 test: fix the problem in test_58 of recovery_small 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 Change-Id: I226a3d4772d033182ded28caacbecdc44c7af8c4 Reviewed-on: http://review.whamcloud.com/3506 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jay J Lan Reviewed-by: Andreas Dilger --- lustre/tests/recovery-small.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh index 459e2ae..997bc78 100755 --- a/lustre/tests/recovery-small.sh +++ b/lustre/tests/recovery-small.sh @@ -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" -- 1.8.3.1