Python: fix console flags for test

This commit is contained in:
Gaute Lindkvist
2019-06-06 13:34:10 +02:00
parent 91bbbdbe74
commit ea45d07b85
2 changed files with 4 additions and 4 deletions

View File

@@ -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