[Toybox] [PATCH] netcat.test: reduce flake.

Rob Landley rob at landley.net
Sat Feb 6 23:27:10 PST 2021


On 2/6/21 3:09 PM, enh via Toybox wrote:
> Starting two netcats at the same time and expecting them to be able to
> talk to each is a little optimistic. I don't know whether `sleep .1`
> will be sufficient, but wanted to try that before going to `sleep 1`
> since neither the toybox nor the github nor the Android infrastructure
> is running these tests in parallel, those seconds add up.

Hmmm. In theory I could make it run the tests in parallel in different
subdirectories. That's one of the reasons to move from having the test
infrastructure source the tests to having it run them as child processes. I
already added VERBOSE=nopass mode, and could have it collect error output into a
variable it can printf all in one blob to avoid interleaving...

I'll add it to the todo heap...

Rob


More information about the Toybox mailing list