If you run the py27 tox tests then attempt to run the py34 tests,
the following error will occur:
running testr running=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 ./ ./ --list
db type could not be determined
error: testr failed (3)
This happens because the apparently the times.dbm file generated
by py27 is not compatible with py34. The converse is not true though -
if you run py34 first, py27 will work.
The work-around is to delete the file, which is what is now done
before running every tox test. Once the bug has been fixed, the
work-around can be removed.
Reviewed: https:/ /review. openstack. org/301270 /git.openstack. org/cgit/ openstack/ python- troveclient/ commit/ ?id=ff70d109032 c2f04cc3a0c12db 4d6efa4311ed2a
Committed: https:/
Submitter: Jenkins
Branch: master
commit ff70d109032c2f0 4cc3a0c12db4d6e fa4311ed2a
Author: Peter Stachowski <email address hidden>
Date: Mon Apr 4 18:09:37 2016 +0000
Remove times.dbm file for each tox run
If you run the py27 tox tests then attempt to run the py34 tests,
the following error will occur:
running testr
running= 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 ./ ./ --list
db type could not be determined
error: testr failed (3)
This happens because the apparently the times.dbm file generated
by py27 is not compatible with py34. The converse is not true though -
if you run py34 first, py27 will work.
Both these bugs have been filed against it, but I see no resolution /bugs.launchpad .net/testreposi tory/+bug/ 1212909 /bugs.launchpad .net/testreposi tory/+bug/ 1229445
https:/
https:/
The work-around is to delete the file, which is what is now done
before running every tox test. Once the bug has been fixed, the
work-around can be removed.
Change-Id: Icf5d9efc65ffda 8acdcc6f43b37ef 03c84b3fd43
Closes-Bug: #1565928