glance.tests.unit.test_artifacts_plugin_loader unit test failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
John Haan |
Bug Description
The unit tests in glance.
# ./run_tests.sh -N glance.
glance.
test_
test_
test_
test_load FAIL
Below is the result of test_load() unit test.
=======
FAIL: glance.
-------
Traceback (most recent call last):
testtools.
File "/home/
'MyArtifact
File "/home/
pkg_
File "/usr/local/
return cls(res['name'], res['module'], attrs, extras, dist)
File "/usr/local/
raise ValueError("Invalid module name", module_name)
ValueError: ('Invalid module name', '.home.
-------
other results were same to the test_load() test.
The reason why is that I performs unit tests as jenkins user.
Therefore my working directory is /home/jenkins/
when getting the path for _setup_loader()
It gets full path of file which means,
path = os.path.
The full path is raised ValueError for module validation check.
description: | updated |
Changed in glance: | |
assignee: | nobody → John Haan (yongiman) |
description: | updated |
tags: | added: artifacts |
Changed in glance: | |
status: | New → In Progress |
Changed in glance: | |
status: | In Progress → New |
Changed in glance: | |
status: | New → In Progress |
Changed in glance: | |
importance: | Undecided → Medium |
Changed in glance: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | liberty-1 → 11.0.0 |
Hi. I get the same issue when building in Jenkins. Full log available here: /kilo-jessie. pkgs.mirantis. com/job/ glance/ 40/consoleFull
https:/
but I don't get it only if building with Jenkins. I also get the same error when building using a normal sbuild environment as my normal "zigo" user. If you wish to rebuild the package in Debian Jessie, you can check the instructions over here:
http:// openstack. alioth. debian. org