KEEP_TEST_CLUSTER env var
This commit is contained in:
@@ -113,6 +113,8 @@ def _tuple_version(version_string):
|
||||
|
||||
|
||||
USE_CASS_EXTERNAL = bool(os.getenv('USE_CASS_EXTERNAL', False))
|
||||
KEEP_TEST_CLUSTER = bool(os.getenv('KEEP_TEST_CLUSTER', False))
|
||||
|
||||
|
||||
# If set to to true this will force the Cython tests to run regardless of whether they are installed
|
||||
cython_env = os.getenv('VERIFY_CYTHON', "False")
|
||||
@@ -309,7 +311,7 @@ def use_single_node(start=True, workloads=[]):
|
||||
|
||||
|
||||
def remove_cluster():
|
||||
if USE_CASS_EXTERNAL:
|
||||
if USE_CASS_EXTERNAL or KEEP_TEST_CLUSTER:
|
||||
return
|
||||
|
||||
global CCM_CLUSTER
|
||||
@@ -416,7 +418,7 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=[]):
|
||||
|
||||
|
||||
def teardown_package():
|
||||
if USE_CASS_EXTERNAL:
|
||||
if USE_CASS_EXTERNAL or KEEP_TEST_CLUSTER:
|
||||
return
|
||||
# when multiple modules are run explicitly, this runs between them
|
||||
# need to make sure CCM_CLUSTER is properly cleared for that case
|
||||
|
||||
Reference in New Issue
Block a user