Mark Slee | 5299a95 | 2007-10-05 00:13:24 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | import subprocess |
| 4 | import sys |
| 5 | import os |
| 6 | import signal |
| 7 | |
| 8 | serverproc = subprocess.Popen([sys.executable, "TestServer.py"]) |
| 9 | try: |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 10 | |
Mark Slee | 5299a95 | 2007-10-05 00:13:24 +0000 | [diff] [blame] | 11 | ret = subprocess.call([sys.executable, "TestClient.py"]) |
| 12 | if ret != 0: |
| 13 | raise Exception("subprocess failed") |
| 14 | finally: |
| 15 | # fixme: should check that server didn't die |
| 16 | os.kill(serverproc.pid, signal.SIGKILL) |