Message ID | 20121001221910.28336.12269.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_dispatcher/context.py' --- lava_dispatcher/context.py 2012-09-26 01:44:57 +0000 +++ lava_dispatcher/context.py 2012-09-27 21:59:57 +0000 @@ -18,7 +18,9 @@ # along # with this program; if not, see <http://www.gnu.org/licenses>. +import atexit import os +import shutil import tempfile from lava_dispatcher.config import get_device_config @@ -63,4 +65,5 @@ def host_result_dir(self): if self._host_result_dir is None: self._host_result_dir = tempfile.mkdtemp() + atexit.register(shutil.rmtree, self._host_result_dir) return self._host_result_dir