tests: Improve tickle tests
authorMartin Schwenke <martin@meltin.net>
Fri, 28 Feb 2014 04:54:05 +0000 (15:54 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 26 Mar 2014 02:58:29 +0000 (13:58 +1100)
commitaa5a3726144c6e3ddae56ce394f5569463c32cc9
tree30d4a11ec42ce6898b5a75462ffe039d23f34b18
parent03d578211d4f9ce07bed25c02f4f74b2c05e675b
tests: Improve tickle tests

It is hard to diagnose failures in the NFS tickle test because there's
no way of telling if the test node doesn't have the tickle or if it
didn't get propagated.

Factor out check_tickles() into local.bash and give it some
parameters.

Have the NFS test call it first to ensure the tickle has been
registered.  Then use new function check_tickles_all() to ensure the
tickle has been propagated to all nodes.  Give this a bit of extra
time (double the timeout) just in case we're racing with the update.

Add a useful comment to the CIFS test so that I stop asking myself how
the test could ever have worked reliably.  :-)

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(Imported from commit bafb9151ccb5722df36f9ba168716f4f4fa01cdc)
tests/complex/31_nfs_tickle.sh
tests/complex/32_cifs_tickle.sh
tests/complex/scripts/local.bash