From e11f2e80068696ce8460a2b0a388a1e412df3f6d Mon Sep 17 00:00:00 2001 From: yushangbin Date: Sun, 13 Aug 2017 22:00:32 +0800 Subject: [PATCH] Add 'rm -f .testrepository/times.dbm' command in testenv Running py2* post py3* tests results in error. Add 'rm -f .testrepository/times.dbm' command in testenv to resolve this. Closes-Bug: #1565928 Change-Id: I111d82a1509af03aa2e141ee3fd9b2ff9e223215 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index dbec4f1..338f43e 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,10 @@ setenv = PYTHONWARNINGS=default::DeprecationWarning deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = python setup.py test --slowest --testr-args='{posargs}' +whitelist_externals = rm +commands = + rm -f .testrepository/times.dbm + python setup.py test --slowest --testr-args='{posargs}' [testenv:pep8] commands = flake8