On 18 Mar 2007, at 02:15, Michael G Schwern wrote:
I worry about situations where multiple producers are simultaneously
outputting to one stream as in with threaded or forked producers.
I guess
this is going to be a mess no matter what, there has to be some
sort of
coordination and that's outside of our domain.
If you want to be able to safely multiplex TAP from multiple sources
on a single stream the safest way is to tag each line with its source:
source1: 1..5
source1: ok 1
source2: 1..10
source1: ok 2
source2: ok 1
etc. You can demux it by applying the obvious s/^\w+:// transformation.
Even if we made it possible to associate a chunk of YAML with a
previous test who's to say that the whole YAML document was output
atomically? Maybe that got mixed up with YAML from another source?
There's a lot of wisdom in Ghostbusters of which this is just one
example.
--
Andy Armstrong, hexten.net