Skip to content

Commit

Permalink
Merge pull request #341 from tevino/harder-harness
Browse files Browse the repository at this point in the history
ignore error when removing directory
  • Loading branch information
harlowja committed Jun 19, 2015
2 parents 8511483 + c7c6d06 commit 6878989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kazoo/testing/common.py
Expand Up @@ -223,7 +223,7 @@ def client_port(self):
def reset(self):
"""Stop the zookeeper instance, cleaning out its on disk-data."""
self.stop()
shutil.rmtree(os.path.join(self.working_path, "data"))
shutil.rmtree(os.path.join(self.working_path, "data"), True)
os.mkdir(os.path.join(self.working_path, "data"))
with open(os.path.join(self.working_path, "data", "myid"), "w") as fh:
fh.write(str(self.server_info.server_id))
Expand All @@ -247,7 +247,7 @@ def destroy(self):
import shutil
self.stop()

shutil.rmtree(self.working_path)
shutil.rmtree(self.working_path, True)


class ZookeeperCluster(object):
Expand Down

0 comments on commit 6878989

Please sign in to comment.