From 951a277e0e45cedfd05f4c1acbbc0c7cd1ca81df Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Wed, 18 Feb 2015 23:47:38 -0500 Subject: 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. --- tests/utils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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""" -- cgit v1.2.3