Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 275 Bytes
#!/usr/bin/env python2
import os
import time
import signal
server_pid = os.fork()
if server_pid == 0:
os.execv("/usr/bin/python2", ["python", "server.py"])
os._exit(0)
else:
time.sleep(1)
os.system("python2 tests.py")
os.kill(server_pid, signal.SIGINT)