diff options
author | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-08-06 06:43:34 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-08-06 06:43:34 +0530 |
commit | 67fc5ef3f3966aa5782994a0cdc8377ba8e1cb42 (patch) | |
tree | fcd2b315798291b5770a3465b0f9754686269b7e /slave | |
parent | Fix syncing of the jobtage tree (master:master not HEAD:HEAD) (diff) | |
download | autotua-67fc5ef3f3966aa5782994a0cdc8377ba8e1cb42.tar.gz autotua-67fc5ef3f3966aa5782994a0cdc8377ba8e1cb42.tar.bz2 autotua-67fc5ef3f3966aa5782994a0cdc8377ba8e1cb42.zip |
Move old autotua tmpdirs inside the chroot to /tmp/autotua-old instead of /tmp
(reduce clutter)
Diffstat (limited to 'slave')
-rw-r--r-- | slave/autotua/chroot/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/slave/autotua/chroot/__init__.py b/slave/autotua/chroot/__init__.py index 08ec7df..3197176 100644 --- a/slave/autotua/chroot/__init__.py +++ b/slave/autotua/chroot/__init__.py @@ -148,5 +148,7 @@ class WorkChroot(object): """ self._clean_mounts() if osp.isdir('%s/tmp/autotua' % self.chrootdir): + if not os.isdir('%s/tmp/aututoa-old' % self.chrootdir): + os.makedirs('%s/tmp/aututoa-old' % self.chrootdir) shutil.move('%s/tmp/autotua' % (self.chrootdir), - '%s/tmp/autotua-%s' % (self.chrootdir, strftime('%Y%m%d%H%M%S'))) + '%s/tmp/autotua-old/autotua-%s' % (self.chrootdir, strftime('%Y%m%d%H%M%S'))) |