From c21ad6ed15c28692510877345ac93df18398136d Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 4 Oct 2014 11:18:56 +0100 Subject: [PATCH] Update the runtests parser to set the stable version in the environ --- tests/runtests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/runtests.py b/tests/runtests.py index 7125195..5ee8859 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -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: