Whamcloud - gitweb
LU-7102 tests: fix replay-dual.sh test_26 for MDSCOUNT=1 14/16414/3
authorAndreas Dilger <andreas.dilger@intel.com>
Mon, 14 Sep 2015 19:07:41 +0000 (13:07 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 19 Sep 2015 03:26:57 +0000 (03:26 +0000)
commit3b75ac83e4266ced141dd53fee0a09c5ed329f4d
tree057073481ee09ac83ddb5f2028637c655da57ebb
parent36f59f94c06c74887a32f2a7757e7c962c6cf8dd
LU-7102 tests: fix replay-dual.sh test_26 for MDSCOUNT=1

The replay-dual.sh test_26 code could never pass for MDSCOUNT=1
since it was returning a "false" condition for the first
conditional and always tripping the error message:

[ $MDSCOUNT -ge 2 ] && {set default dirstripe} || error

Instead, make {set default dirstripe} a sub-clause of the conditional.

Fix cleanup_26 to kill proper dbench pid.

Clean up some code style in this test.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I0849318aa59e5698efb27b730a69e2f1b4e2d181
Reviewed-on: http://review.whamcloud.com/16414
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/replay-dual.sh