Skip to content

Commit

Permalink
Preserve already defined DESTRUCTIVE_TESTS and EXPENSIVE_TESTS env va…
Browse files Browse the repository at this point in the history
…riables
  • Loading branch information
meaksh committed Jun 5, 2019
1 parent b99e55a commit f561456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/support/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,12 +574,12 @@ def _validate_options(self):

self.validate_options()

if self.support_destructive_tests_selection:
if self.support_destructive_tests_selection and not os.environ.get('DESTRUCTIVE_TESTS', None):
# Set the required environment variable in order to know if
# destructive tests should be executed or not.
os.environ['DESTRUCTIVE_TESTS'] = str(self.options.run_destructive)

if self.support_expensive_tests_selection:
if self.support_expensive_tests_selection and not os.environ.get('EXPENSIVE_TESTS', None):
# Set the required environment variable in order to know if
# expensive tests should be executed or not.
os.environ['EXPENSIVE_TESTS'] = str(self.options.run_expensive)
Expand Down

0 comments on commit f561456

Please sign in to comment.