# HG changeset patch # User Pierre-Yves David # Date 1329994655 -3600 # Node ID d54fc706d623f1b0458893096f481cd4909d480d # Parent 852c73392b0005840401efef1432d6b611f8636a [test] create temporary directory with meaningfull prefix It will help cleanup temporary directory when cubicweb test failed to cleanup themself. diff -r 852c73392b00 -r d54fc706d623 devtools/devctl.py --- a/devtools/devctl.py Mon Feb 20 15:16:55 2012 +0100 +++ b/devtools/devctl.py Thu Feb 23 11:57:35 2012 +0100 @@ -303,7 +303,7 @@ from logilab.common.shellutils import globfind, find, rm from logilab.common.modutils import get_module_files from cubicweb.i18n import extract_from_tal, execute - tempdir = tempfile.mkdtemp() + tempdir = tempfile.mkdtemp(prefix='cw-') cwi18ndir = WebConfiguration.i18n_lib_dir() print '-> extract schema messages.' schemapot = osp.join(tempdir, 'schema.pot') diff -r 852c73392b00 -r d54fc706d623 devtools/qunit.py --- a/devtools/qunit.py Mon Feb 20 15:16:55 2012 +0100 +++ b/devtools/qunit.py Thu Feb 23 11:57:35 2012 +0100 @@ -64,7 +64,7 @@ def __init__(self, url=None): self._process = None - self._tmp_dir = mkdtemp() + self._tmp_dir = mkdtemp(prefix='cwtest-ffxprof-') self._profile_data = {'uid': uuid4()} self._profile_name = self.profile_name_mask % self._profile_data fnull = open(os.devnull, 'w')