Skip to content

Commit 6715493

Browse files
committed
tox.ini: exit non-zero if any command fails
`find` only exits non-zero if finding something failed, ignoring any exec'd program exit status. use bash and xargs to preserve the non-zero exit status
1 parent a93e7d5 commit 6715493

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ setenv =
1515
deps =
1616
dzcb~=0.1
1717
commands =
18-
/usr/bin/env find {toxinidir}/input \
19-
-name "generate.sh" \
20-
{env:FIND_OPTS} -exec \{\} ;
18+
/usr/bin/env bash -c " \
19+
find {toxinidir}/input \
20+
-name "generate.sh" \
21+
{env:FIND_OPTS} -print0 | \
22+
xargs -0 -n 1 bash \
23+
"

0 commit comments

Comments
 (0)