diff options
| author | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2013-02-18 07:21:23 -0500 |
|---|---|---|
| committer | Isaku Yamahata <yamahata@valinux.co.jp> | 2013-02-25 16:16:55 +0900 |
| commit | 8842a00c452dfa9d2ee70e73419e92daa477ea1a (patch) | |
| tree | 084b2b17bcb92ccc7706b946ee8f5d1052d1dff0 /openstack/common/xmlutils.py | |
| parent | 2b418be864a5aa5ba135f7651e83051cf3bf9ce6 (diff) | |
| download | oslo-8842a00c452dfa9d2ee70e73419e92daa477ea1a.tar.gz oslo-8842a00c452dfa9d2ee70e73419e92daa477ea1a.tar.xz oslo-8842a00c452dfa9d2ee70e73419e92daa477ea1a.zip | |
openstack.common.setup: fails to get version from git
quantum run_tests.py fails because
openstack.common.setup._get_version_from_git fails. It is because
quantum unit tests run under quantum/tests/unit instead of git root dir.
So the function should check parent dirs for .git.
cinder folks seem to have hit this bug (1125416).
ERROR: test_network_gateway_update (quantum.tests.unit.nicira.test_networkgw.NetworkGatewayExtensionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "quantum/quantum/tests/unit/nicira/test_networkgw.py", line 70, in setUp
config.parse(args=args)
File "quantum/quantum/common/config.py", line 99, in parse
version='%%prog %s' % quantum_version.release_string())
File "quantum/quantum/openstack/common/version.py", line 63, in release_string
self.release = self._get_version_from_pkg_resources()
File "quantum/quantum/openstack/common/version.py", line 56, in _get_version_from_pkg_resources
return setup.get_version(self.package)
File "quantum/quantum/openstack/common/setup.py", line 334, in get_version
raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository.
Change-Id: I2e24c00b5ba8f35381cac081ff72d86ea0d75d19
Fixes: bug #1131162 and bug #1125416
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'openstack/common/xmlutils.py')
0 files changed, 0 insertions, 0 deletions
