Whamcloud - gitweb
LU-2592 tests: do not remove $TMP/*active in rpc.sh
authorYu Jian <yujian@whamcloud.com>
Sat, 12 Jan 2013 15:44:56 +0000 (23:44 +0800)
committerJohann Lombardi <johann.lombardi@intel.com>
Fri, 18 Jan 2013 07:48:46 +0000 (02:48 -0500)
commitac2e86496470572dd05da204de0e0d6be9e7f86e
treec43dc45ff70530d24eed5fd92949aa96a59ba15c
parentf9f645a4c2bf5f16d78cf63eab9b01554e7d33ed
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: I24c560f2be92bbf6ab92e4d5de1905092eb926b4
Reviewed-on: http://review.whamcloud.com/5008
Tested-by: Hudson
Reviewed-by: Wei Liu <wei3.liu@intel.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/tests/rpc.sh
lustre/tests/test-framework.sh