Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testscript: fix "signal: killed" exec errors on MacOS
On `MacOS` there are lots of reports of unexpected failing tests with output similar to this: ``` [signal: killed] FAIL: testscripts/myecho.txt:1: unexpected command failure ``` On CI builds the workaround has been to downgrade to a builder with MacOS <= 11 (e.g. macos-11 on GitHub). In development on a MacBook, this is not an option. This commit works around what seem to be a upstream bug in `os.Link` by adding a small sleep before `TestingM.Run()` to allow the write of the test command symlinks to be ready. See rogpeppe#200
- Loading branch information