Whamcloud - gitweb
LU-797 tests: process lfs df output properly
authorEmoly Liu <emoly.liu@intel.com>
Mon, 10 Dec 2012 13:11:16 +0000 (21:11 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 15 Dec 2012 06:21:27 +0000 (01:21 -0500)
commit5794376578905efb2f26a3ae5c8fcdf1d72cb5f8
tree5437ac713ff32fb6f8ed90078126e5bc99ac9fcd
parent6127a5acd943cddee33695056e3ff0908d975e51
LU-797 tests: process lfs df output properly

There is a space in the "filesystem summary" of lfs df output,
which could cause trouble for the parsing script, test_23b of
ost-pool.sh is an example.

We introduced lfs_df() function to remove this space internally,
this will allow fixing the "lfs df" output line in the future.

port of master patch fb1a1ec6300a5ec3925b725d5d2b783314dff3f8

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Signed-off-by: Liu Ying <emoly.liu@intel.com>
Change-Id: Iba57b4aac714e28ebdd985f15ff3e2444e64e007
Reviewed-on: http://review.whamcloud.com/4784
Tested-by: Hudson
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/tests/ost-pools.sh
lustre/tests/sanity-benchmark.sh
lustre/tests/sanity.sh
lustre/tests/sanityn.sh
lustre/tests/test-framework.sh