Ignore failure on a single test

Greetings. When a TestNG test fails I am retrying it once. If the retry is successful, then the build should be successful. If both the retry and the original test fail, the build should fail. The ignoreFailures option will ignore all failed tests and mark the build successful. I would like a more selective option. If such a feature doesn’t exist, I can calculate in the afterSuite hook whether the suite was a success or failure; I would just need a way to manually mark the build as such.