<div class="gmail_quote">On 15 August 2013 04:35, Alexius Ludeman <span dir="ltr"><<a href="mailto:lex@lexinator.com" target="_blank">lex@lexinator.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>I am running tempest on OEL 6.3 (aka RHEL 6.3) and I had issues with python 2.6 and skipException[3], so now I'm using python 2.7 just for tempest. I also had difficulty with yum and python module dependency and made the transition to venv. This has reduced the yum dependency nightmare greatly.</div>
<div><div><br></div></div>now that testr is default for tempest. testr does not appear to support --exclusion[1] or --stop[2].<div><br></div><div>I have a work around for --exclusion, by:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div>testr list-tests | egrep -v regex-exclude-list > unit-tests.txt</div></blockquote></div></blockquote><div><br>Thats a decent workaround if the regex is too hard to work with; and I do acknowledge that some folk find that. However the tempest pattern is very simple - just add (?!.*ThingToExclude) to the front of the pattern.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>testr run --load-list unit-tests.txt</div>
</blockquote></div></blockquote><div><br>testr can't support --stop in the same way as nose because it's a meta-runner, not a runner. However subunit.run, like testtools.run, like unittest supports --failfast (or -f).<br>
<br>So<br>testr run --load-list unit-tests.txt -- -f<br>will run single-worker and cause that worker to stop one a single failure occurs.<br> <br>I'm very open to the idea of cancelling other workers once a failure is detected in parallel mode, if someone wants to work on a patch.<br>
<br><br></div></div>-Rob<br><br clear="all"><br>-- <br>Robert Collins <<a href="mailto:rbtcollins@hp.com" target="_blank">rbtcollins@hp.com</a>><br>Distinguished Technologist<br>HP Converged Cloud