[devel at bb.net] Error while running tests
Dustin J. Mitchell
dustin at v.igoro.us
Wed Feb 24 16:57:31 UTC 2016
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
More information about the devel
mailing list