mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4460 Improved error messages for pytest
This commit is contained in:
parent
196e7df0fa
commit
5b39860a41
@ -29,7 +29,8 @@ class Instance:
|
||||
if not resInsightExecutable:
|
||||
resInsightExecutable = os.environ.get('RESINSIGHT_EXECUTABLE')
|
||||
if not resInsightExecutable:
|
||||
print('Error: Could not launch any ResInsight instances because RESINSIGHT_EXECUTABLE is not set')
|
||||
print('ERROR: Could not launch ResInsight because the environment variable'
|
||||
' RESINSIGHT_EXECUTABLE is not set')
|
||||
return None
|
||||
|
||||
while Instance.is_port_in_use(port):
|
||||
|
@ -8,6 +8,7 @@ import rips
|
||||
instance = rips.Instance.launch()
|
||||
|
||||
if (not instance):
|
||||
print("A ResInsight instance is required for running the tests")
|
||||
exit(1)
|
||||
|
||||
@pytest.fixture
|
||||
|
Loading…
Reference in New Issue
Block a user