summaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 8794459..1e03e66 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -58,16 +58,24 @@ def get_config():
def rm_nodedirs(config):
- """Removes node directories"""
+ """Purges and removes node directories."""
nodes = get_nodedirs(config)
+ purge_nodedirs(config)
+
for node in nodes:
try:
- purge_dir(node)
rmdir(node)
except OSError, e:
print "Problem deleting", node, e
+def purge_nodedirs(config):
+ """Purges everything inside node directories."""
+ nodes = get_nodedirs(config)
+ for node in nodes:
+ purge_dir(node)
+
+
def rm_configdir():
"""Removes the combox test config directory."""
config_dir = path.join('tests', 'test-config')