22 lines
523 B
Python
Raw Normal View History

2024-12-05 07:18:01 +00:00
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!")