basho/riak_test — pull request #286 by rzezeski (2013-05-24 16:47:39+00:00)
Title: Wait for 'cluster plan' to succeed (verify_staged_clustering)

While running the `verify_staged_clustering` test on my local
workstation I hit a race when force replacing dev3 with dev2. The
call to 'cluster plan' was happening before the ring had converged and
thus failing, but the test assumed the first call always succeeds.

This patch simply mimicks what a user might do and retry the 'cluster
plan' command over and over until it succeeds.