diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-10 16:28:51 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-10 16:30:57 -0700 |
commit | d0a0883eaaeec37800ca5cd07647b7b66a00c453 (patch) | |
tree | 16844b6f48c093496f2b5029aa40d901d2fae41b /t | |
parent | 18e6540cb0fd824989dacecc84039d91b539a101 (diff) | |
download | unicorn-d0a0883eaaeec37800ca5cd07647b7b66a00c453.tar.gz |
Don't try to redirect until we know our FIFO consumers are ready for us. This only seems to happen with bash and not ksh...
Diffstat (limited to 't')
-rw-r--r-- | t/my-tap-lib.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/my-tap-lib.sh b/t/my-tap-lib.sh index 2d0c1a9..eced1e0 100644 --- a/t/my-tap-lib.sh +++ b/t/my-tap-lib.sh @@ -188,9 +188,10 @@ then ( # use a subshell so seds are not waitable - $SED -e 's/^/#: /' $t_stdout & - $SED -e 's/^/#! /' $t_stderr & + $SED -e 's/^/#: /' < $t_stdout & + $SED -e 's/^/#! /' < $t_stderr & ) & + wait exec > $t_stdout 2> $t_stderr else exec > /dev/null 2> /dev/null |