combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit 643b62343cc3205e1caa9151748c07d75a1d0467
parent 9820b99266802a0bbd7236950aa1c143d5287a7b
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Thu, 19 Feb 2015 21:51:55 -0500

tests/utils.py: modded `rm_nodedirs' and defined new function 'purge_nodedirs'

- rm_nodedirs now calls purge_nodedirs and then deletes the node directories.
- purge_nodedirs function just purges the contents of the node directories.

Diffstat:
tests/utils.py | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git 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')