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:

    py34 runtests: commands[0] | ostestr
    --blacklist_file=blacklist-py3.txt
    db type could not be determined
    running=${PYTHON:-python} -m subunit.run discover
    ./trove/tests/unittests --list
    The test run didn't actually run any tests

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.

This was originally noticed in python-troveclient, however it
also manifests in the Trove project.

coverage.xml was also added to the .gitignore file as it
was appearing in the git list of modified files.

Change-Id: I312b3879c764b7b803d35e0bb62f0f47291f6693
Closes-Bug: #1565928
This commit is contained in:
Peter Stachowski 2016-07-18 17:27:36 +00:00
parent d41d773cb3
commit dda9aa730b
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ trove.egg*
trove/vcsversion.py
*py*.egg
.coverage
coverage.xml
cover/
dist/
host-syslog.log

View File

@ -27,8 +27,9 @@ commands =
xargs -0 -n 1 msgfmt --check-format -o /dev/null"
[testenv:py34]
commands =
ostestr --blacklist_file=blacklist-py3.txt --serial
commands = rm -f .testrepository/times.dbm
ostestr --blacklist_file=blacklist-py3.txt --serial
whitelist_externals = rm
[testenv:debug]