sleep between cp and exec in test scripts
Every now and then, I get test failures in the goenv test like: > [!windows] cp $EXEC_PATH $NAME/garble$exe > [!windows] exec $NAME/garble$exe build [fork/exec with"double"quotes/garble: text file busy] FAIL: testdata/scripts/goenv.txt:21: unexpected command failure The root cause is https://go.dev/issue/22315, which isn't going to be fixed anytime soon, as it is a race condition in Linux itself, triggered by how heavily concurrent Go tends to be. For now, try to make the race much less likely to happen.pull/576/head
parent
fa35e6d81c
commit
d0c6ccd63d
Loading…
Reference in New Issue