[PKG-Openstack-devel] fixed build package python-oslo.db - missing testscenarions package
Michal Arbet
michal.arbet at ultimum.io
Tue Jan 16 12:35:21 UTC 2018
Hi Guys,
I want just remind you that I fixed build-dependency in python-oslo.db >>
https://salsa.debian.org/openstack-team/oslo/python-oslo.db/commit/9047af2ddbff02f7fc54b585f7aa05ac15d09c61
before build was failing on tests :
===> Running tests
set -e ; set -x ; for i in 2.7 3.5 ; do \
PYMAJOR=`echo $i | cut -d'.' -f1` ; \
echo "===> Testing with python$i (python$PYMAJOR)" ; \
rm -rf .testrepository ; \
testr-python$PYMAJOR init ; \
TEMP_REZ=`mktemp -t` ; \
PYTHONPATH=/build/python-oslo.db PYTHON=python$i testr-python$PYMAJOR
run --subunit 'tests\.(?!.*test_db_api_without_installed_eventlet.*)' | tee
$TEMP_REZ | subunit2pyunit ; \
cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
rm -f $TEMP_REZ ; \
testr-python$PYMAJOR slowest ; \
done
+ echo 2.7
+ cut -d. -f1
+ PYMAJOR=2
+ echo ===> Testing with python2.7 (python2)
===> Testing with python2.7 (python2)
+ rm -rf .testrepository
+ testr-python2 init
+ mktemp -t
+ TEMP_REZ=/tmp/tmp.JqRaTYYY88
+ PYTHONPATH=/build/python-oslo.db PYTHON=python2.7 testr-python2 run
--subunit tests\.(?!.*test_db_api_without_installed_eventlet.*)
+ tee /tmp/tmp.JqRaTYYY88
+ subunit2pyunit
runNon-zero exit code (2) from test listing.
ning=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ ./oslo_db/tests --list
--- import errors ---
Failed to import test module: oslo_db.tests.sqlalchemy
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 490, in
_find_test_path
package = self._get_module_from_name(name)
File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in
_get_module_from_name
__import__(name)
File "oslo_db/tests/sqlalchemy/__init__.py", line 16, in <module>
from oslo_db.sqlalchemy import test_base
File "oslo_db/sqlalchemy/test_base.py", line 35, in <module>
from oslo_db.sqlalchemy.test_fixtures import
optimize_package_test_loader
File "oslo_db/sqlalchemy/test_fixtures.py", line 19, in <module>
import testscenarios
ImportError: No module named testscenarios
Thanks,
Michal Arbet ( Kevin )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20180116/c2be0a20/attachment.html>
More information about the Openstack-devel
mailing list