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.
@@ -23,7 +23,7 @@ deps = -r{toxinidir}/test-requirements.txt
# the concurrency=<n> 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
