Hey,<div><br></div><div>You should take a look at flunc, a test runner that uses twill scripts for tests, and includes this cleanup feature:</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://pypi.python.org/pypi/flunc">http://pypi.python.org/pypi/flunc</a></div>

<div><a href="http://pypi.python.org/pypi/flunc"></a><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://coactivate.org/projects/flunc/project-home">http://coactivate.org/projects/flunc/project-home</a><br>

</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://coactivate.org/projects/flunc/project-home/#cleanup-handlers">http://coactivate.org/projects/flunc/project-home/#cleanup-handlers</a></div>

<div><br></div><div>-Ethan</div><div><br><div class="gmail_quote">On Sat, Jan 22, 2011 at 3:53 PM, Adam Victor Nazareth Brandizzi <span dir="ltr">&lt;<a href="mailto:brandizzi@gmail.com">brandizzi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello, all!<br>
<br>
I am using Twill for automatically test an application. It is great!<br>
However, I&#39;ve found it cumbersome to execute a cleanup process after<br>
some test fails. In fact, I use Python and Bash for cleaning the mess<br>
up.<br>
<br>
Have someone a plan for implementing some kind of &quot;finally&quot; option for<br>
Twill - I mean, a way to specify that some commands should be executed<br>
at the end of the script even if the script fails? It is not<br>
absolutely necessary but seems as a practical functionality.<br>
<br>
Thanks in advance!<br>
<font color="#888888"><br>
--<br>
Adam Victor Nazareth Brandizzi<br>
<a href="http://brandizzi.googlepages.com/" target="_blank">http://brandizzi.googlepages.com/</a><br>
<br>
_______________________________________________<br>
twill mailing list<br>
<a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/twill" target="_blank">http://lists.idyll.org/listinfo/twill</a><br>
</font></blockquote></div><br></div>