[devel at bb.net] Error while running tests
Aditya Divekar
adityadivekar03 at gmail.com
Wed Feb 24 17:53:48 UTC 2016
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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/devel/attachments/20160224/27eaeda1/attachment.html>
More information about the devel
mailing list