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:
parent
d43d3c4df5
commit
0368192a1f
2
tox.ini
2
tox.ini
@ -23,7 +23,7 @@ deps = -r{toxinidir}/test-requirements.txt
|
|||||||
# the concurrency=<n> option.
|
# the concurrency=<n> option.
|
||||||
# call ie: 'tox -epy27 -- --concurrency=4'
|
# call ie: 'tox -epy27 -- --concurrency=4'
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -ignore_readdir_race -type f -name "*.pyc" -delete
|
||||||
stestr run '{posargs}'
|
stestr run '{posargs}'
|
||||||
stestr slowest
|
stestr slowest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user