[PATCH] ctdb-scripts: Invoke pstree with -l option (bug 13531)

Martin Schwenke martin at meltin.net
Sun Jul 15 06:46:01 UTC 2018


This should get rid of the current flappiness in various CTDB tests that
use the pstree command, most notably ctdb/tests/eventd/eventd_022.sh,
which I've seen flapping quite a bit.

As the commit message says, a couple of recent commits have lengthened
the command string printed by pstree.  This, in combination with the
deep directory structure used by autobuild on sn-devel, is probably
enough to take the test the flapping point.  Then it probably comes
down to the width of the PID printed in the original (unfiltered)
pstree output. Wow!  :-)

... and sorry about that... you never think about these things until
they happen.  Who knew that pstree truncates long lines?  :-(

I ran a private autobuild on sn-devel, running just the ctdb tests, in a
loop this passed 9 times in a row (until I killed it).

Please review and maybe push...

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-scripts-Invoke-pstree-with-l-option.patch
Type: text/x-patch
Size: 4146 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180715/8594723a/0001-ctdb-scripts-Invoke-pstree-with-l-option.bin>


More information about the samba-technical mailing list