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
This commit is contained in:
Eric Harney 2018-02-19 11:52:56 -05:00
parent d43d3c4df5
commit 0368192a1f

View File

@ -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