Whamcloud - gitweb
LU-1285 tests: fix tar breakage in 102d/102f/102j
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 5 Apr 2012 23:37:09 +0000 (17:37 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Apr 2012 14:12:11 +0000 (10:12 -0400)
commit8d0bf30d5dc700b176c9e66a103e8c31fff20d47
tree79940bc2d8fd47e58123d569ae49550f5136d528
parentdb8a6829cb1c9869d998920c095a14de2d5300bf
LU-1285 tests: fix tar breakage in 102d/102f/102j

Due to changes in commit a5fed8233f4f5755d61909849e23d146a94d4396
to remove the use of ad-hoc "lfs getstripe" output parsing, the
sanity.sh tests 102d, 102f, and 102j were broken.  Fix the tests
to use "lfs getstripe [-c|-S|-i]" instead of "get_stripe_info()".

Allow the new files to have 3/4 stripes (per min_stripe_count())
of the originally backed up files in case there are not enough
OSC objects available.

Also clean up the formatting of test_102a to match the coding
style, avoid breaking the vim syntax highlighting due to the
use of excessive quoting, and add proper error messages on failure.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I2cd09c455f024882d94cf945a0e2f546d13ac27a
Reviewed-on: http://review.whamcloud.com/2458
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/replay-ost-single.sh
lustre/tests/sanity.sh