added --rerun flag which reruns the tests (with different hashseeds
and such) the specified number of times.  Exits on first failure.
Merge pull request #8017 from pbrady/rerun_tests

Add --rerun flag to bin/test