<p dir="ltr">Hi,<br>
Thanjs for clearing that up... I had a hard time understanding the screws before I went with testr.</p>
<p dir="ltr">Regards,<br>
Vineet</p>
<div class="gmail_quote">On 25 Nov 2014 17:46, "Matthew Treinish" <<a href="mailto:mtreinish@kortar.org">mtreinish@kortar.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Nov 24, 2014 at 10:49:27AM +0100, Angelo Matarazzo wrote:<br>
> Sorry for my previous message with wrong subject<br>
><br>
> Hi all,<br>
> By reading the tempest documentation page [1] a user can run tempest tests<br>
> by using whether testr or run_tempest.sh or tox.<br>
><br>
> What is the best practice?<br>
> run_tempest.sh has several options (e.g. ./run_tempest.sh -h) and it is my<br>
> preferred way, currently.<br>
> Any thought?<br>
<br>
So the options are there for different reasons and fit different purposes. The<br>
run_tempest.sh script exists mostly for legacy reasons as some people prefer to<br>
use it, and it predates the usage of tox in tempest. It also has some advantages<br>
like that it can run without a venv and provides some other options.<br>
<br>
Tox is what we use for gating, and we keep most of job definitions for gating in<br>
the tox.ini file. If you're trying to reproduce a gate run locally using tox is<br>
what is recommended to use. Personally I use it to run everything just because<br>
I often mix unit tests and tempest runs and I like having separate venvs for<br>
both being created on demand.<br>
<br>
Calling testr directly is just what all of these tools are doing under the<br>
covers, and it'll always be an option.<br>
<br>
One thing we're looking to do this cycle is to add a single entry point for<br>
running tempest which will hopefully clear up this confusion, and make the<br>
interface for interacting with tempest a bit nicer. When this work is done, the<br>
run_tempest.sh script will most likely disappear and tox will probably just be<br>
used for gating job definitions and just call the new entry-point instead of<br>
testr directly.<br>
<br>
><br>
> BR,<br>
> Angelo<br>
><br>
> [1] <a href="http://docs.openstack.org/developer/tempest/overview.html#quickstart" target="_blank">http://docs.openstack.org/developer/tempest/overview.html#quickstart</a><br>
><br>
<br>
-Matt Treinish<br>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div>