diff options
-rw-r--r-- | tests/utils.py | 10 |
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""" |