yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72977
[Bug 1772177] Re: Functional testcase fails
The invocation error you're getting is because
neutron.tests.functional.agent.linux.test_dhcp.TestDeviceManager.test_setup_reserved_2
does not exist. TestDeviceManager is not in
neutron/tests/functional/agent/linux/test_dhcp.py, only in
neutron/tests/unit/agent/linux/test_dhcp.py.
As for your second series of commands, I don't know that you *can't* do
it that way, but normally after activating the environment you can
simply do: python -m testtools.run neutron.tests.full.path...
Those errors seem to indicate to me that it's trying to recreate the
py27 environment while you've already activated it and are inside it.
However, my previous understanding of tox -e was that it wouldn't
recreate the environment if it already existed, so I'm not 100% sure.
Like I said, I don't know that that *shouldn't* work, but using the
method I described should so if you try that and it still gives errors
we can go from there :)
For now, I'll mark this bug as invalid, but feel free to continue
commenting if you have more problems, I'll keep an eye out. Good luck!
** Changed in: neutron
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1772177
Title:
Functional testcase fails
Status in neutron:
Invalid
Bug description:
Hello all,
I have installed devstack, and checked out latest neutron source code.
Tried to run unit testcase with below command,
root@guest1-Standard-PC-i440FX-PIIX-1996:/home/guest1/neutron# tox -epy27 neutron.tests.unit.agent.linux.test_dhcp
Unit test runs successful over devstack setup.
But not able to run functional testcases.
Followed below steps to run functional testcases on devstack setup.
1. ./tools/configure_for_func_testing.sh /opt/stack/devstack -i
2. root@guest1-Standard-PC-i440FX-PIIX-1996:/home/guest1/neutron# tox -epy27 -- neutron.tests.functional.agent.linux.test_dhcp.TestDeviceManager.test_setup_reserved_2
But it is giving following error,
ERROR: InvocationError for command '/home/guest1/neutron/tools/ostestr_compat_shim.sh neutron.tests.functional.agent.linux.test_dhcp.TestDeviceManager.test_setup_reserved_2' (exited with code 1)
___________________________________________________________________ summary ______________________
ERROR: py27: commands failed
Tried with following way as well,
root@guest1-Standard-PC-i440FX-PIIX-1996:/home/guest1/neutron# source .tox/py27/bin/activate
(py27) root@guest1-Standard-PC-i440FX-PIIX-1996:/home/guest1/neutron# tox -epy27 neutron.tests.functional.agent.linux.test_dhcp.TestDeviceManager.test_setup_reserved_2
py27 recreate: /home/guest1/neutron/.tox/py27
ERROR: invocation failed (exit code 3), logfile: /home/guest1/neutron/.tox/py27/log/py27-0.log
ERROR: actionid: py27
msg: getenv
cmdargs: ['/usr/bin/python', '-m', 'virtualenv', '--python', '/home/guest1/neutron/.tox/py27/bin/python2.7', 'py27']
The path /home/guest1/neutron/.tox/py27/bin/python2.7 (from
--python=/home/guest1/neutron/.tox/py27/bin/python2.7) does not exist
ERROR: Error creating virtualenv. Note that some special characters (e.g. ':' and unicode symbols) in paths are not supported by virtualenv. Error details: InvocationError('/usr/bin/python -m virtualenv --python /home/guest1/neutron/.tox/py27/bin/python2.7 py27 (see /home/guest1/neutron/.tox/py27/log/py27-0.log)', 3)
______________________________ summary _______________________
ERROR: py27: Error creating virtualenv. Note that some special characters (e.g. ':' and unicode symbols) in paths are not supported by virtualenv. Error details: InvocationError('/usr/bin/python -m virtualenv --python /home/guest1/neutron/.tox/py27/bin/python2.7 py27 (see /home/guest1/neutron/.tox/py27/log/py27-0.log)', 3)
Since I am new to this please correct me if, I am missing anything to
run functional testcases.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1772177/+subscriptions
References