立即注册 登录
About云-梭伦科技 返回首页

我是老孙@yun的个人空间 https://aboutyun.com/?46237 [收藏] [复制] [分享] [RSS]

日志

openstack 单元测试执行覆盖率测试报错

已有 954 次阅读2019-9-17 09:11 |个人分类:错误记录|系统分类:openstack| nova, tox

(novadev27) root@dev-u:/home/sunjiyun/17.0.7/nova# tox -e cover
/home/sunjiyun/17.0.7/nova/.tox/cover/local/lib/python2.7/site-packages/setuptools/dist.py:45: DistDeprecationWarning: Do not call this function
  warnings.warn("Do not call this function", DistDeprecationWarning)
cover develop-inst-noop: /home/sunjiyun/17.0.7/nova
cover installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,actdiag==0.5.4,alabaster==0.7.10,appdirs==1.4.3,attrs==17.4.0,Babel==2.5.3,bandit==1.6.2,blockdiag==1.5.3,certifi==2018.1.18,chardet==3.0.4,cliff==2.11.1,cmd2==0.7.9,colorama==0.3.9,coverage==4.4.2,ddt==1.1.1,debtcollector==1.19.0,decorator==4.2.1,deprecation==1.0.1,docutils==0.14,dogpile.cache==0.6.4,dulwich==0.18.6,enum-compat==0.0.2,enum34==1.1.6,eventlet==0.20.0,extras==1.0.0,fasteners==0.14.1,fixtures==3.0.0,flake8==2.5.5,funcparserlib==0.3.6,funcsigs==1.0.2,functools32==3.2.3.post2,future==0.16.0,futures==3.2.0,gabbi==1.42.1,gitdb2==2.0.3,GitPython==2.1.8,greenlet==0.4.15,hacking==0.12.0,idna==2.6,imagesize==0.7.1,ipaddress==1.0.19,iso8601==0.1.12,Jinja2==2.10,jmespath==0.9.3,jsonpatch==1.21,jsonpath-rw==1.4.0,jsonpath-rw-ext==1.1.3,jsonpointer==2.0,jsonschema==2.6.0,keystoneauth1==3.4.0,linecache2==1.0.0,lxml==4.1.1,MarkupSafe==1.0,mccabe==0.2.1,mock==2.0.0,monotonic==1.4,mox3==0.24.0,msgpack==0.5.1,munch==2.2.0,netaddr==0.7.19,netifaces==0.10.6,nova==3.1.1,openstackdocstheme==1.22.0,openstacksdk==0.11.3,os-api-ref==1.5.0,os-client-config==1.29.0,os-service-types==1.1.0,osc-lib==1.9.0,oslo.concurrency==3.25.1,oslo.config==5.2.1,oslo.i18n==3.19.0,oslo.serialization==2.24.0,oslo.utils==3.35.1,oslo.vmware==2.26.0,oslotest==3.2.0,osprofiler==1.15.2,pbr==3.1.1,pep8==1.5.7,Pillow==5.0.0,pluggy==0.6.0,ply==3.10,prettytable==0.7.2,psycopg2==2.7.3.2,py==1.5.2,pyflakes==0.8.1,Pygments==2.2.0,PyMySQL==0.8.0,pyparsing==2.2.0,pyperclip==1.6.0,pytest==3.3.2,python-barbicanclient==4.6.1,python-ironicclient==2.2.2,python-mimeparse==1.6.0,python-pcre==0.7,python-subunit==1.2.0,pytz==2017.3,PyYAML==3.12,reno==2.7.0,requests==2.18.4,requests-mock==1.4.0,requestsexceptions==1.4.0,rfc3986==1.1.0,seqdiag==0.9.5,simplejson==3.13.2,six==1.11.0,smmap2==2.0.3,snowballstemmer==1.2.1,Sphinx==1.6.5,sphinxcontrib-actdiag==0.8.5,sphinxcontrib-seqdiag==0.8.5,sphinxcontrib-websupport==1.0.1,stestr==2.0.0,stevedore==1.28.0,suds-jurko==0.6,testrepository==0.0.20,testresources==2.0.1,testscenarios==0.5.0,testtools==2.3.0,traceback2==1.4.0,typing==3.6.2,unicodecsv==0.14.1,unittest2==1.1.0,urllib3==1.22,voluptuous==0.10.5,webcolors==1.7,WebOb==1.7.4,whereto==0.4.0,wrapt==1.10.11,wsgi-intercept==1.6.0
cover run-test-pre: PYTHONHASHSEED='3527988970'
cover run-test: commands[0] | coverage erase
cover run-test: commands[1] | find . -type f -name '*.pyc' -delete
cover run-test: commands[2] | stestr run ''

=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: nova.tests.unit
Traceback (most recent call last):
  File "/home/sunjiyun/17.0.7/nova/.tox/cover/local/lib/python2.7/site-packages/unittest2/loader.py", line 490, in _find_test_path
    package = self._get_module_from_name(name)
  File "/home/sunjiyun/17.0.7/nova/.tox/cover/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "nova/__init__.py", line 33, in <module>
    import oslo_service  # noqa
ImportError: No module named oslo_service

================================================================================
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
ERROR: InvocationError for command /home/sunjiyun/17.0.7/nova/.tox/cover/bin/stestr run '' (exited with code 100)
_________________________________________________________________________________________________ summary __________________________________________________________________________________________________
ERROR:   cover: commands failed

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

关闭

推荐上一条 /2 下一条