tests: fix tail test race causing false failure
commitc95c0a0fd4b8dc72a66484f3f361a3afb9acdc94
authorPádraig Brady <P@draigBrady.com>
Wed, 1 Feb 2017 05:27:41 +0000 (31 21:27 -0800)
committerPádraig Brady <P@draigBrady.com>
Wed, 8 Feb 2017 22:40:22 +0000 (8 14:40 -0800)
treea14b7f0a4aaa68eb400c0c6727268c5ddf252f45
parenta520942efadbd0f86759f9bcb428ec0a83ed56e4
tests: fix tail test race causing false failure

* tests/tail-2/retry.sh: The replacement of the "missing" directory
is not atomic, and therefore tail(1) can take a different path,
especially if there is a delay between the rmdir(2) and creat(2).
This is noticeable for example with `make coverage` because in
that case the coverage files written by rmdir(1) on exit,
induce a significant delay thus triggering the issue.
tests/tail-2/retry.sh