Whamcloud - gitweb
branch: HEAD
authorericm <ericm>
Thu, 22 Oct 2009 03:15:20 +0000 (03:15 +0000)
committerericm <ericm>
Thu, 22 Oct 2009 03:15:20 +0000 (03:15 +0000)
wait before test file size.
b=20801
r=rread

lustre/tests/replay-single.sh

index 792176d..992aa31 100755 (executable)
@@ -499,9 +499,9 @@ test_20c() { # bug 10480
     df -P $DIR || df -P $DIR || true    # reconnect
 
     kill -USR1 $pid
-    test -s $DIR/$tfile || error "File was truncated"
-
     wait $pid || return 1
+    [ -s $DIR/$tfile ] || error "File was truncated"
+
     return 0
 }
 run_test 20c "check that client eviction does not affect file content"