don't revert snapshots if neccessary

This commit is contained in:
vic 2013-03-05 22:09:58 +04:00
parent f7b833b313
commit 09774959eb
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,8 @@ from fuel_test.ci.ci_cobbler import CiCobbler
from fuel_test.cobbler.cobbler_client import CobblerClient 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.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.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): class CobblerTestCase(BaseTestCase):
def ci(self): def ci(self):
@ -50,6 +51,7 @@ class CobblerTestCase(BaseTestCase):
ci=self.ci()) ci=self.ci())
def setUp(self): def setUp(self):
if CLEAN:
self.get_nodes_deployed_state() self.get_nodes_deployed_state()
self.generate_manifests() self.generate_manifests()
self.update_modules() self.update_modules()

View File

@ -100,3 +100,4 @@ POOLS = {
TEST_REPO = os.environ.get('TEST_REPO', 'false') == 'true' TEST_REPO = os.environ.get('TEST_REPO', 'false') == 'true'
EXIST_TAR = os.environ.get('EXIST_TAR', None) EXIST_TAR = os.environ.get('EXIST_TAR', None)
CREATE_SNAPSHOTS = os.environ.get('CREATE_SNAPSHOTS', 'true') == 'true' CREATE_SNAPSHOTS = os.environ.get('CREATE_SNAPSHOTS', 'true') == 'true'
CLEAN = os.environ.get('CLEAN', 'true') == 'true'