Update the runtests parser to set the stable version in the environ

This commit is contained in:
Pedro Algarvio 2014-10-04 11:18:56 +01:00
parent f13e036179
commit c21ad6ed15

View file

@ -52,6 +52,11 @@ class BootstrapSuiteParser(SaltTestingParser):
action='store_true',
help='Run Installation tests'
)
self.test_selection_group.add_option(
'--stable-salt-version',
default='v2014.1.10',
help='Specify the current stable release of salt'
)
def run_integration_suite(self, display_name, suffix='[!_]*.py'):
'''
@ -82,6 +87,9 @@ def main():
print 'Detected system grains:'
pprint.pprint(GRAINS)
# Set the current stable version of salt
os.environ['CURRENT_SALT_STABLE_VERSION'] = options.stable_salt_version
overall_status = []
if options.name: