mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
set DESTRUCTIVE_TESTS environment variable for pytest
This commit is contained in:
parent
df50ce7b1b
commit
055cd5a6ba
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ def pytest_runtest_setup(item):
|
|||
if destructive_tests_marker is not None:
|
||||
if item.config.getoption('--run-destructive') is False:
|
||||
pytest.skip('Destructive tests are disabled')
|
||||
os.environ['DESTRUCTIVE_TESTS'] = six.text_type(item.config.getoption('--run-destructive'))
|
||||
|
||||
expensive_tests_marker = item.get_marker('expensive_test')
|
||||
if expensive_tests_marker is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue