Whamcloud - gitweb
LU-2805 tests: compare the file correctly for layout swapping
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 13 Feb 2013 21:34:53 +0000 (13:34 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 4 Mar 2013 19:26:59 +0000 (14:26 -0500)
commite7d2ac5f77d0574bfbd187820393430d1ec1a9c2
treefd09334dc65e6de6a795d104d253fdc2417bb8da
parent5e9cc9fce2c3689c49e8d720a6e2c3be94070e30
LU-2805 tests: compare the file correctly for layout swapping

The size of file ref2 may be less than copied bytes so the result of
command cmp will be false due to EOF. Check differ string instead.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I344f90bf4b75f535961f1acdc5574aeca8e85126
Reviewed-on: http://review.whamcloud.com/5420
Tested-by: Hudson
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh