mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
#12958 Check if executable exists before trying to launch ResInsight
This commit is contained in:
1 parent
fffb3f2672
commit
96f953b4ff
2 files changed
+12
No files matched your search
@@ -7,6 +7,11 @@ sys.path.insert(1, os.path.join(sys.path[0], "../../"))
|
||||
import rips
|
||||
|
||||
|
||||
def test_launch_non_existing(rips_instance, initialize_test):
|
||||
instance = rips.Instance.launch("non_existing", console=True)
|
||||
assert instance is None
|
||||
|
||||
|
||||
def launch_resinsight(sec=1):
|
||||
resinsight_executable_from_env = os.environ.get("RESINSIGHT_EXECUTABLE")
|
||||
if resinsight_executable_from_env is None:
|
||||
|
||||
Reference in new issue
Block a user