From 0368192a1f74f91c59739bab82dab1fddcd87c44 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Mon, 19 Feb 2018 11:52:56 -0500 Subject: [PATCH] Fix find -delete race in tox If you launch py35 and py27 envs from the same directory simultaneously, the find -delete commands here will race against each other and cause a failure. Set the find option to ignore readdir races. Change-Id: I4977ad687150b5a1d6f09a961fca4db5d768ef71 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 6a4c899b5a2..acd56aecc8e 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ deps = -r{toxinidir}/test-requirements.txt # the concurrency= option. # call ie: 'tox -epy27 -- --concurrency=4' commands = - find . -type f -name "*.pyc" -delete + find . -ignore_readdir_race -type f -name "*.pyc" -delete stestr run '{posargs}' stestr slowest