prior to use usage of ostestr in tox.ini settings, running tox on a specific test used to work.
tox -epy27 cinder.tests.unit.test_volume.VolumeTestCase.test_create_delete_consistencygroup
py27 develop-inst-nodeps: /opt/stack/cinder
py27 installed: aioeventlet==0.4,alembic==0.7.6,amqp==1.4.6,anyjson==0.3.3,appdirs==1.4.0,Babel==1.3,cachetools==1.0.3,cffi==1.1.2,-e git+http://git.openstack.org/openstack/cinder.git@5464cdd836861b42c0bedc2771f2af227c81d8b4#egg=cinder-bug_1472344,cliff==1.13.0,cmd2==0.6.8,contextlib2==0.4.0,coverage==3.7.1,cryptography==0.9.2,ddt==1.0.0,debtcollector==0.5.0,decorator==3.4.2,discover==0.4.0,docutils==0.12,ecdsa==0.13,enum34==1.0.4,eventlet==0.17.4,extras==0.0.3,fasteners==0.12.0,fixtures==1.3.1,flake8==2.2.4,functools32==3.2.3.post1,futures==3.0.3,greenlet==0.4.7,hacking==0.10.2,httplib2==0.9.1,idna==2.0,ipaddress==1.0.7,iso8601==0.1.10,Jinja2==2.7.3,jsonpatch==1.11,jsonpointer==1.9,jsonschema==2.5.1,keystonemiddleware==2.1.0,kombu==3.0.26,linecache2==1.0.0,lxml==3.4.4,Mako==1.0.1,MarkupSafe==0.23,mccabe==0.2.1,mock==1.0.1,monotonic==0.2,mox3==0.8.0,msgpack-python==0.4.6,netaddr==0.7.15,netifaces==0.10.4,networkx==1.9.1,os-brick==0.2.0,os-client-config==1.4.0,os-testr==0.2.0,oslo.concurrency==2.2.0,oslo.config==1.14.0,oslo.context==0.4.0,oslo.db==2.1.0,oslo.i18n==2.1.0,oslo.log==1.6.0,oslo.messaging==1.16.0,oslo.middleware==2.3.0,oslo.policy==0.7.0,oslo.reports==0.2.0,oslo.rootwrap==2.1.0,oslo.serialization==1.7.0,oslo.service==0.3.0,oslo.utils==1.8.0,oslo.versionedobjects==0.5.2,oslo.vmware==1.16.0,oslosphinx==3.0.0,oslotest==1.8.0,osprofiler==0.3.0,paramiko==1.15.2,Paste==2.0.2,PasteDeploy==1.5.2,pbr==1.2.0,pep8==1.5.7,posix-ipc==1.0.0,prettytable==0.7.2,psutil==1.2.1,psycopg2==2.6.1,pyasn1==0.1.8,pycadf==1.0.0,pycparser==2.14,pycrypto==2.6.1,pyflakes==0.8.1,Pygments==2.0.2,PyMySQL==0.6.6,pyOpenSSL==0.15.1,pyparsing==2.0.3,python-barbicanclient==3.2.0,python-glanceclient==0.19.0,python-keystoneclient==1.6.0,python-mimeparse==0.1.4,python-novaclient==2.26.0,python-subunit==1.1.0,python-swiftclient==2.4.0,pytz==2015.4,PyYAML==3.11,repoze.lru==0.6,requests==2.7.0,retrying==1.3.3,Routes==1.13,rtslib-fb==2.1.57,simplejson==3.7.3,six==1.9.0,Sphinx==1.2.3,SQLAlchemy==1.0.6,sqlalchemy-migrate==0.9.6,sqlparse==0.1.15,stevedore==1.6.0,suds-jurko==0.6,taskflow==1.14.0,tempest-lib==0.6.1,Tempita==0.5.2,testrepository==0.0.20,testresources==0.2.7,testscenarios==0.5.0,testtools==1.8.0,traceback2==1.4.0,trollius==1.0.4,unittest2==1.1.0,urllib3==1.10.4,warlock==1.1.0,WebOb==1.4.1,wheel==0.24.0,wrapt==1.10.5
py27 runtests: PYTHONHASHSEED='0'
py27 runtests: commands[0] | ostestr cinder.tests.unit.test_volume.VolumeTestCase.test_create_delete_consistencygroup
usage: ostestr [-h] [--blacklist_file BLACKLIST_FILE] [--regex REGEX]
[--pretty] [--no-pretty] [--subunit] [--list]
[--no-discover TEST_ID] [--slowest] [--no-slowest]
[--pdb TEST_ID] [--parallel] [--serial] [--concurrency WORKERS]
[--until-failure] [--print-exclude]
ostestr: error: unrecognized arguments: cinder.tests.unit.test_volume.VolumeTestCase.test_create_delete_consistencygroup
ERROR: InvocationError: '/opt/stack/cinder/.tox/py27/bin/ostestr cinder.tests.unit.test_volume.VolumeTestCase.test_create_delete_consistencygroup'
________________________________________________________ summary ________________________________________________________
ERROR: py27: commands failed
The workaround is to use a very unfriendly version of the tox command line such as
tox -epy27 -- --regex cinder.tests.unit.test_volume.VolumeTestCase.test_create_delete_consistencygroup
when I run test with old way of tox, it failed I don't know why. so i ask Matthew to solve the problem. I think it needed to have a detailed document about tox Command ,or what you said add default input