]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: avoid rare race in tail-2/F-vs-rename.sh
authorPádraig Brady <P@draigBrady.com>
Fri, 17 Sep 2021 12:31:25 +0000 (13:31 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 20 Sep 2021 10:19:53 +0000 (11:19 +0100)
commitf80c6c267d2915eaa7851e90b44eb0893a25e41d
tree665e546c199dca821c30444207d7973303e1caff
parent6946f9e47d2b134bbecf4b073cfc174b9eaec25e
tests: avoid rare race in tail-2/F-vs-rename.sh

* tests/tail-2/F-vs-rename.sh: Keep stdout and stderr separate,
so that interspersion doesn't impact regex checks.  Also wait
for each file's data to be printed to avoid multiple writes
to a file to be printed in a single iteration, which would
impact the regex checks.  Also we refactor the check function,
rather than repeatedly redefining variations.
tests/tail-2/F-vs-rename.sh