Skip to content

Commit

Permalink
don't reuse connection files in parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jun 28, 2011
1 parent e8b40c8 commit 3406090
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions IPython/parallel/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ def start(self):
# nose setup/teardown

def setup():
cluster_dir = os.path.join(get_ipython_dir(), 'profile_iptest')
engine_json = os.path.join(cluster_dir, 'security', 'ipcontroller-engine.json')
client_json = os.path.join(cluster_dir, 'security', 'ipcontroller-client.json')
for json in (engine_json, client_json):
if os.path.exists(json):
os.remove(json)

cp = TestProcessLauncher()
cp.cmd_and_args = ipcontroller_cmd_argv + \
['profile=iptest', 'log_level=50', '--reuse']
['profile=iptest', 'log_level=50']
cp.start()
launchers.append(cp)
cluster_dir = os.path.join(get_ipython_dir(), 'profile_iptest')
engine_json = os.path.join(cluster_dir, 'security', 'ipcontroller-engine.json')
client_json = os.path.join(cluster_dir, 'security', 'ipcontroller-client.json')
tic = time.time()
while not os.path.exists(engine_json) or not os.path.exists(client_json):
if cp.poll() is not None:
Expand Down

0 comments on commit 3406090

Please sign in to comment.