From 98cbf72e57e1d6950b3ea333b673c1c1c39a6cd7 Mon Sep 17 00:00:00 2001 From: Maciej Szankin Date: Thu, 16 Feb 2017 20:52:41 +0000 Subject: [PATCH] Tests: remove .testrepository/times.dbm in tox.ini Existance of this file causes py3* tests to fail if run after py27. This patch adds cleaning up of this file before running py3* tests. Change-Id: I64ef1eac7f05f217674c73ddd2cc3af773dd75ce Closes-Bug: #1229445 --- tox.ini | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 614461d37d35..5c83a0778cd7 100644 --- a/tox.ini +++ b/tox.ini @@ -16,11 +16,9 @@ setenv = VIRTUAL_ENV={envdir} LANGUAGE=en_US LC_ALL=en_US.utf-8 deps = -r{toxinidir}/test-requirements.txt -# NOTE(mriedem): If py35 fails with "db type could not be determined", delete -# .testrepository and try again. Running py35 before py27 is OK, but not the -# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909 commands = find . -type f -name "*.pyc" -delete + rm -Rf .testrepository/times.dbm passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEBUG GENERATE_HASHES # there is also secret magic in pretty_tox.sh which lets you run in a fail only # mode. To do this define the TRACE_FAILONLY environmental variable.