22 lines
523 B
Python
22 lines
523 B
Python
|
import subprocess
|
||
|
import shlex
|
||
|
import time
|
||
|
|
||
|
processes = [
|
||
|
subprocess.Popen(shlex.split("./.venv/bin/mololog.serve --host=127.0.0.1 --port=3999 --db=':memory:' --test=3")),
|
||
|
subprocess.Popen(shlex.split("./.venv/bin/mololog.test --url=http://localhost:3999"))
|
||
|
]
|
||
|
|
||
|
for process in processes:
|
||
|
while True:
|
||
|
process.poll()
|
||
|
if not process.returncode is None:
|
||
|
if process.returncode != 0:
|
||
|
exit(process.returncode)
|
||
|
break
|
||
|
time.sleep(1)
|
||
|
|
||
|
print("Test sucess!")
|
||
|
|
||
|
|