fix import issue

This commit is contained in:
Arvid Norberg 2013-06-21 05:47:30 +00:00
parent d93bd674d5
commit 81127c05e0
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ import json
import sys
import yaml
from multiprocessing import Pool
import glob
import shutil
# the .regression.yml configuration file format looks like this (it's yaml):
@ -302,7 +304,7 @@ def main(argv):
# won't clean things outside of the test directory
if not os.path.abspath(f).startswith(test_dir): continue
print 'deleting %s' %f
os.rmdirs(f)
shutil.rmtree(f)
finally:
# always restore current directory
os.chdir(current_dir)