blob: 0f5c46fac605e5d4d4da3c92ffaa59012bbde40c [file] [log] [blame]
Mark Slee5299a952007-10-05 00:13:24 +00001#!/usr/bin/env python
2
3import subprocess
4import sys
5import os
6import signal
7
8serverproc = subprocess.Popen([sys.executable, "TestServer.py"])
9try:
10
11 ret = subprocess.call([sys.executable, "TestClient.py"])
12 if ret != 0:
13 raise Exception("subprocess failed")
14finally:
15 # fixme: should check that server didn't die
16 os.kill(serverproc.pid, signal.SIGKILL)