Whamcloud - gitweb
LU-797 tests: process lfs df output properly
authorNiu Yawei <niu@whamcloud.com>
Thu, 29 Nov 2012 09:59:40 +0000 (04:59 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Dec 2012 16:56:05 +0000 (11:56 -0500)
commitfb1a1ec6300a5ec3925b725d5d2b783314dff3f8
treebb0749bb7f08086a5778587270cbe3325bfab1f1
parent5467ad53134bf0f064030a3b709ccafb7b8d0b79
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.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I524d42a5e792a1b29db52166e92624bf42312c3f
Reviewed-on: http://review.whamcloud.com/4705
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/tests/mds-survey.sh
lustre/tests/ost-pools.sh
lustre/tests/sanity-benchmark.sh
lustre/tests/sanity-quota.sh
lustre/tests/sanity.sh
lustre/tests/sanityn.sh
lustre/tests/test-framework.sh