blob: 21f45310f90a55cefdff3888526c635be854305a [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:
David Reiss0c90f6f2008-02-06 22:18:40 +000010
Mark Slee5299a952007-10-05 00:13:24 +000011 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)