Whamcloud - gitweb
LU-2592 tests: do not remove $TMP/*active in rpc.sh
authorJian Yu <jian.yu@intel.com>
Fri, 18 Jan 2013 09:26:49 +0000 (17:26 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Jan 2013 05:29:00 +0000 (00:29 -0500)
commitfa423043b3bb152730f698cb5bf6126e2df882c2
tree03df97d6ac74a840ce71764ab7ab07e37c8bc0c5
parenta3548adb8effd0793d24e8db9b720eefd1a65e82
LU-2592 tests: do not remove $TMP/*active in rpc.sh

The $TMP/*active files record the current active facets info
under failover test configuration. They are removed from
init_test_env() initially. If failover tests use do_rpc_nodes()
which performs rpc.sh and in which init_test_env() is used,
then the active facets info will be lost during the testing.

This patch fixes the above issue by introducing an RPC_MODE
variable which controls that the $TMP/*active files will not
be removed from init_test_env() in rpc.sh.

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes clientcount=4 osscount=2 mdscount=2 austeroptions=-R failover=true useiscsi=true testlist=replay-vbr
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Iab464449e7c41ffd76256e9ec60b48b326f3ea9e
Reviewed-on: http://review.whamcloud.com/5127
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Wei Liu <wei3.liu@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/rpc.sh
lustre/tests/test-framework.sh