mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Python : Avoid closing existing ResInsight when pytest is closing down
This commit is contained in:
@@ -34,5 +34,6 @@ def pytest_configure(config):
|
||||
print("Need a valid ResInsight executable to launch tests")
|
||||
exit(0)
|
||||
|
||||
def pytest_unconfigure():
|
||||
_rips_instance.app.exit()
|
||||
def pytest_unconfigure(config):
|
||||
if not config.getoption('--existing'):
|
||||
_rips_instance.app.exit()
|
||||
|
||||
Reference in New Issue
Block a user