diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2013-02-10 17:44:41 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2013-02-10 17:44:41 +0100 |
commit | 956990514235e0bccac79ccda060d8fff439ebe3 (patch) | |
tree | 5841fc7cc4e8a85fd1f5cd27f34cfc6645227be1 | |
parent | 542effc8be4b0f9c129bea39bb1ef0ff81444bb0 (diff) | |
download | miniircd-956990514235e0bccac79ccda060d8fff439ebe3.tar.gz miniircd-956990514235e0bccac79ccda060d8fff439ebe3.zip |
Fix race condition when tearing down test case
-rwxr-xr-x | miniircd | 2 | ||||
-rw-r--r-- | test.py | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ #! /usr/bin/env python # Hey, Emacs! This is -*-python-*-. # -# Copyright (C) 2003, 2011-2012 Joel Rosdahl +# Copyright (C) 2003, 2011-2013 Joel Rosdahl # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -55,6 +55,7 @@ class ServerFixture(object): def shutDown(self): os.kill(self.child_pid, signal.SIGTERM) + os.waitpid(self.child_pid, 0) if self.state_dir: try: shutil.rmtree(self.state_dir) |