summaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-02-18 23:47:38 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-02-18 23:47:38 -0500
commit951a277e0e45cedfd05f4c1acbbc0c7cd1ca81df (patch)
tree8014c8dffc406bb87516a96905abd090e623ac6e /tests/utils.py
parentb15e57265e8593e3a085f0b44858f60878289435 (diff)
tests/utils.py: added rm_configdir function
rm_configdir() will be used to remove the test-config/ directory and will be called in all teardown methods of Test classes.
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index f21bd38..8794459 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -68,6 +68,16 @@ def rm_nodedirs(config):
print "Problem deleting", node, e
+def rm_configdir():
+ """Removes the combox test config directory."""
+ config_dir = path.join('tests', 'test-config')
+ try:
+ purge_dir(config_dir)
+ rmdir(config_dir)
+ except OSError, e:
+ print "Problem deleting", config_dir, e
+
+
def shardedp(f):
"""Checks if file's shards exists in the node directories"""