Fix for "db type could not be determined" error message

If tests are run under py27 then run under py34 or py35, user may get
`db type could not be determined` error.

This patch adds a note to the dev-quickstart guide telling user to
remove the file `.testrepository/times.dbm` and then run the py34 or
py35 test to work around this error.

Change-Id: I57b583eaa8586d14cee730eefc515ad064ac8b32
Closes-Bug: #1229445 (regarding Ironic)
This commit is contained in:
Varun Gadiraju 2016-08-02 22:45:13 +00:00
parent 88303cc56c
commit 288f4e617b

View File

@ -105,6 +105,15 @@ To run the unit tests under py34 and also run the pep8 tests::
# run all tests (unit under py34 and pep8) # run all tests (unit under py34 and pep8)
tox -epy34 -epep8 tox -epy34 -epep8
.. note::
If tests are run under py27 and then run under py34 or py35 the following error may occur::
db type could not be determined
ERROR: InvocationError: '/home/ubuntu/ironic/.tox/py35/bin/ostestr'
To overcome this error remove the file `.testrepository/times.dbm`
and then run the py34 or py35 test.
You may pass options to the test programs using positional arguments. You may pass options to the test programs using positional arguments.
To run a specific unit test, this passes the -r option and desired test To run a specific unit test, this passes the -r option and desired test
(regex string) to `os-testr <https://pypi.python.org/pypi/os-testr>`_:: (regex string) to `os-testr <https://pypi.python.org/pypi/os-testr>`_::