Tests - eventscripts - stop timeouts waiting for backgrounded testparm
authorMartin Schwenke <martin@meltin.net>
Fri, 19 Aug 2011 06:51:08 +0000 (16:51 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 30 Aug 2011 06:51:55 +0000 (16:51 +1000)
commit59a1d54bcc15058f7b69e8596b32b26427a3ae57
tree161a80d5bc4172a69b967ee45bc42bd075669004
parent9c6fd7d21c99e605e20620c5c6b4e695c02af771
Tests - eventscripts - stop timeouts waiting for backgrounded testparm

Not sleeping at all speeds up the tests.  However, it can also cause
timeouts.  Therefore, every time sleep is run we force the stub to do
a short 0.1s sleep instead of whatever is specified.  This should be
enough to avoid races.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/eventscripts/common.sh
tests/eventscripts/stubs/sleep