From 09774959ebb74f0c1993ca96e64ad2e8c0bc469d Mon Sep 17 00:00:00 2001 From: vic Date: Tue, 5 Mar 2013 22:09:58 +0400 Subject: [PATCH] don't revert snapshots if neccessary --- fuel_test/cobbler/cobbler_test_case.py | 6 ++++-- fuel_test/settings.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fuel_test/cobbler/cobbler_test_case.py b/fuel_test/cobbler/cobbler_test_case.py index 1970095efa..b2efa29457 100644 --- a/fuel_test/cobbler/cobbler_test_case.py +++ b/fuel_test/cobbler/cobbler_test_case.py @@ -6,7 +6,8 @@ from fuel_test.ci.ci_cobbler import CiCobbler from fuel_test.cobbler.cobbler_client import CobblerClient from fuel_test.helpers import tcp_ping, udp_ping, build_astute, install_astute, add_to_hosts, await_node_deploy from fuel_test.manifest import Manifest, Template -from fuel_test.settings import PUPPET_VERSION, OS_FAMILY +from fuel_test.settings import PUPPET_VERSION, OS_FAMILY, CLEAN + class CobblerTestCase(BaseTestCase): def ci(self): @@ -50,7 +51,8 @@ class CobblerTestCase(BaseTestCase): ci=self.ci()) def setUp(self): - self.get_nodes_deployed_state() + if CLEAN: + self.get_nodes_deployed_state() self.generate_manifests() self.update_modules() diff --git a/fuel_test/settings.py b/fuel_test/settings.py index e6b56b8051..9c73088055 100644 --- a/fuel_test/settings.py +++ b/fuel_test/settings.py @@ -100,3 +100,4 @@ POOLS = { TEST_REPO = os.environ.get('TEST_REPO', 'false') == 'true' EXIST_TAR = os.environ.get('EXIST_TAR', None) CREATE_SNAPSHOTS = os.environ.get('CREATE_SNAPSHOTS', 'true') == 'true' +CLEAN = os.environ.get('CLEAN', 'true') == 'true' \ No newline at end of file