diff options
author | Pete Zaitcev <zaitcev@kotori.zaitcev.us> | 2016-03-02 08:59:59 -0700 |
---|---|---|
committer | Pete Zaitcev <zaitcev@kotori.zaitcev.us> | 2016-03-02 08:59:59 -0700 |
commit | f179c36aea50ab2dbb8a3d2fb43ea032e8c455e2 (patch) | |
tree | 5f7b772edc7186e812c75042f9fb6b86cc12cb7b /tox.ini | |
parent | c023893dd33c7c790829d37631fe229bff939425 (diff) | |
download | python-swiftclient-f179c36aea50ab2dbb8a3d2fb43ea032e8c455e2.tar.gz |
Drop *.dbm* before running tests
See change I74fb5122e80a223aaa70afaeec7a7c585aa33577 for the
previous discussion. But basically, if you run tox -e py27
then tox -e py34, the latter fails with "db type could not
be determined", because of stuck .testrepository/times.dbm.
This patch fixes it by clearing the *.dbm*. Should be safe
as long as periods aren't used commonly in stable file names.
Change-Id: I617eca308261f291c510c8cbd432779f1c00b182
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,9 +12,9 @@ setenv = deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = sh -c 'find . -not \( -type d -name .?\* -prune \) \ +commands = sh -c '(find . -not \( -type d -name .?\* -prune \) \ \( -type d -name "__pycache__" -or -type f -name "*.py[co]" \) \ - -print0 | xargs -0 rm -rf' + -print0; find . -name "*.dbm*" -print0) | xargs -0 rm -rf' python setup.py testr --testr-args="{posargs}" whitelist_externals = sh passenv = SWIFT_* *_proxy |