<div dir="ltr">And is there any way to run selective tests?<div>As in, if I want to only run the unit test module and skip the others. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 10:27 PM, Dustin J. Mitchell <span dir="ltr"><<a href="mailto:dustin@v.igoro.us" target="_blank">dustin@v.igoro.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hm, I had forgotten about those tox.ini files.  We don't typically use<br>
tox to test Buildbot, although Misha (sa2ajj) may have some<br>
suggestions, since I see him on the list of contributors for tox.ini.<br>
<br>
The full error message is<br>
<br>
py27 runtests: commands[0] | python setup.py test<br>
/home/dustin/p/buildbot/master/.tox/py27/local/lib/python2.7/site-packages/setuptools/dist.py:294:<br>
UserWarning: The version specified ('0.9.0b7-709-g9a14801') is an<br>
invalid version, this may not work as expected with newer versions of<br>
setuptools, pip, and PyPI. Please see PEP 440 for more details.<br>
  "details." % self.metadata.version<br>
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]<br>
   or: setup.py --help [cmd1 cmd2 ...]<br>
   or: setup.py --help-commands<br>
   or: setup.py cmd --help<br>
<span class=""><br>
error: invalid command 'trial'<br>
ERROR: InvocationError:<br>
</span>'/home/dustin/p/buildbot/master/.tox/py27/bin/python setup.py test'<br>
<br>
Which is because setup.cfg contains<br>
<br>
[aliases]<br>
test = trial -m buildbot<br>
<br>
so it's trying to invoke 'setup.py trial', which doesn't exist.<br>
<br>
Instead of using tox, I'd suggest just running the tests yourself in<br>
the virtualenv: `trial buildbot`.<br>
<br>
Dustin<br>
<div><div class="h5"><br>
On Wed, Feb 24, 2016 at 11:32 AM, Aditya Divekar<br>
<<a href="mailto:adityadivekar03@gmail.com">adityadivekar03@gmail.com</a>> wrote:<br>
> Hi,<br>
> I was trying to run the tox script to check the tests in buildbot.<br>
> However, on running the tox script I get the following error -<br>
><br>
> error: invalid command 'trial'<br>
> ERROR: InvocationError:<br>
> '/home/hp/buildbot-work/src/master/.tox/py27/bin/python setup.py test'<br>
><br>
> Could anyone tell me where I am going wrong here?<br>
> (I do have twisted installed on my machine, if that was a possible error. )<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@buildbot.net">devel@buildbot.net</a><br>
> <a href="https://lists.buildbot.net/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/devel</a><br>
</blockquote></div><br></div>