[devel at bb.net] Error while running tests

Vladimir Rutsky rutsky.vladimir at gmail.com
Thu Feb 25 14:07:34 UTC 2016


Just for the record, `setup.py test`/tox issues are tracked in at this moment:
https://github.com/buildbot/buildbot/pull/2021
https://github.com/buildbot/buildbot/pull/2022

--
Vladimir Rutsky

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


More information about the devel mailing list