Disabled a tmpdir cleanup.

This commit is contained in:
Monty Taylor
2010-07-15 08:44:25 -05:00
parent fcc4bafff0
commit df1b7c0271

View File

@@ -41,9 +41,12 @@ oss_tempdir = tempfile.mkdtemp(prefix='test_oss-')
# delete tempdirs from previous runs (we don't delete after test to allow # delete tempdirs from previous runs (we don't delete after test to allow
# checking the contents after running tests) # checking the contents after running tests)
for path in glob.glob(os.path.abspath(os.path.join(oss_tempdir, '../test_oss-*'))): # TODO: This fails on the test box with a permission denied error
if path != oss_tempdir: # Also, doing these things in a global tempdir means that different runs of
shutil.rmtree(path) # the test suite on the same box could clobber each other.
#for path in glob.glob(os.path.abspath(os.path.join(oss_tempdir, '../test_oss-*'))):
# if path != oss_tempdir:
# shutil.rmtree(path)
# create bucket/images path # create bucket/images path