mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Python: fix console flags for test
This commit is contained in:
parent
91bbbdbe74
commit
ea45d07b85
@ -41,10 +41,11 @@ class Instance:
|
||||
|
||||
print('Port ' + str(port))
|
||||
print('Trying to launch', resInsightExecutable)
|
||||
parameters = " --grpcserver " + str(port)
|
||||
parameters = ["ResInsight", "--grpcserver", str(port)]
|
||||
if console:
|
||||
parameters += " --console"
|
||||
pid = os.spawnl(os.P_NOWAIT, resInsightExecutable, parameters)
|
||||
print("Launching as console app")
|
||||
parameters.append("--console")
|
||||
pid = os.spawnv(os.P_NOWAIT, resInsightExecutable, parameters)
|
||||
if pid:
|
||||
return Instance(port=port, launched=True)
|
||||
return None
|
||||
|
@ -28,7 +28,6 @@ def pytest_configure(config):
|
||||
_rips_instance = rips.Instance.find()
|
||||
else:
|
||||
if config.getoption('--console'):
|
||||
print("Should run as console app")
|
||||
console = True
|
||||
_rips_instance = rips.Instance.launch(console=console)
|
||||
if not _rips_instance:
|
||||
|
Loading…
Reference in New Issue
Block a user