final int numRetries = retry.value();
for (int i = 0; i < numRetries; ++i) {
try {
// Do a single test run attempt.
singleTryStatement.evaluate();
// Attempt succeeded, stop evaluation here.
return;
} catch (Throwable t) {
// Attempt failed, store the reason.
failureReason = t;