On Tue, 8 Dec 2009, Jean Delvare wrote:
Le mardi 8 décembre 2009 17:04, Michael Matz a écrit :
Hi,
On Tue, 8 Dec 2009, Jean Delvare wrote:
<snip> The case at hand is quilt's test suite. It's relatively verbose. When tests are run sequentially it's OK. If they are run in parallel then all outputs will interlace and things will become very difficult to read.
So I am looking for ways to run the tests in parallel while still obtaining a usable output if one of the tests fails. And I thought it might help if I could pass a flag to the tester to warn it about parallelism so that it can adjust its output. I'm not too sure how, though.
Out of curiosity, is there a shell command that would simply buffer every input until EOF and then flush everything to stdout?
Well I've had trouble with something similar, my case was distributed over a whole subnet. Here's what I've used: Each test becomes a unique name, with this name the test creates a temp-logfile does it's job including a final state-line with it's name for easy grepping. After finishing the (sub-)test the temp-logfile is appened as whole to the master-logfile (with file-locking to prevent race-conditions). This way the master-logfile stays easyly readable. In my case it was the easiest, best maintainable solution. An other way would be like syslog with a unique test-identifier + test-pid + output-linenumber (for this test). But without grep, one would be lost, trying to read this. Hope this gives some new views on the problem. And it becomes high time to get all of our asses in gear to make parallel jobs of all kind possible. Not just "Compile" but also "Test" and later "Use" of a program. just try starting a program - with logging option on - more than one time from the same user: in most cases: unreadable logs and/or race-conditions. Not nice for the user without any notification of such trouble in the documentation. Questions? - Try reading a .xsession-errors after a well hidden overflow crash of the window-manager, just to try to find out what happend. Cheers, Michael -- "The word 'politics' is derived from the word 'poly', meaning 'many', and the word 'ticks', meaning 'blood sucking parasites'."