Remove layouts on shutdown
Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/09431178 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/09431178 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/09431178 Branch: refs/heads/master Commit: 09431178146d618bfb251dee7b0acf9d92f72dff Parents: b9006c2 Author: Thomas Jackson <[email protected]> Authored: Tue Dec 23 16:19:27 2014 -0800 Committer: Thomas Jackson <[email protected]> Committed: Tue Dec 23 16:20:09 2014 -0800 ---------------------------------------------------------------------- tsqa/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/09431178/tsqa/environment.py ---------------------------------------------------------------------- diff --git a/tsqa/environment.py b/tsqa/environment.py index 29878e7..1cd5fec 100644 --- a/tsqa/environment.py +++ b/tsqa/environment.py @@ -315,7 +315,7 @@ class Environment: installed files. """ self.stop() - #shutil.rmtree(self.layout.prefix, ignore_errors=True) + shutil.rmtree(self.layout.prefix, ignore_errors=True) self.layout = Layout(None) def start(self): @@ -333,6 +333,7 @@ class Environment: self.cop.poll() return self.cop is not None and self.cop.returncode is not None # its running if it hasn't died + # TODO: only do this on success, instead of __del__? def __del__(self): self.destroy()
