yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04485
[Bug 1197800] Re: Cannot run tests without virtual env
** Changed in: glance
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1197800
Title:
Cannot run tests without virtual env
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
It looks like commit 039f3d8a59c62d3ad14288ed1b6a97aab539731e (Convert scripts to entry points)
means that it is no longer possible to run the tests with ./run_tests.sh -N (ie without a virtual environment).
If I checkout the previous commit
(e4d142ed6b7dc80572d3c293c9300b9ee1c6b2fe) ./run_tests.sh -N works ok
(once I've satisfied all the package dependencies).
However with 039f3d8a59c62d3ad14288ed1b6a97aab539731e the tests
actually use the system commands if present (eg /usr/local/bin/glance-
manage) or error out of the commands are not present, eg:
ERROR: glance.tests.functional.v1.test_api.TestApi.test_get_head_simple_post
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/sam/git/sync/glance/glance/tests/utils.py", line 124, in wrapped
func(*a, **kwargs)
File "/home/sam/git/sync/glance/glance/tests/functional/v1/test_api.py", line 66, in test_get_head_simple_post
self.start_servers(**self.__dict__.copy())
File "/home/sam/git/sync/glance/glance/tests/functional/__init__.py", line 734, in start_servers
**kwargs)
File "/home/sam/git/sync/glance/glance/tests/functional/__init__.py", line 702, in start_with_retry
**kwargs)
File "/home/sam/git/sync/glance/glance/tests/functional/__init__.py", line 140, in start
self.create_database()
File "/home/sam/git/sync/glance/glance/tests/functional/__init__.py", line 217, in create_database
expect_exit=True)
File "/home/sam/git/sync/glance/glance/tests/utils.py", line 271, in execute
raise RuntimeError(msg)
RuntimeError: Command glance-manage --config-file /tmp/tmpeiYfco/etc/glance-manage.conf db_sync did not succeed. Returned an exit code of 127.
STDOUT:
STDERR: /bin/sh: 1: glance-manage: not found
The tests should be using the actual current glance code rather than
depending on glance being available on the system.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1197800/+subscriptions