validate: Avoid readding several time the same test in the tests result list

This commit is contained in:
Thibault Saunier 2014-07-21 18:00:42 +02:00
parent b9712e336e
commit 1bd6b2767f

View file

@ -94,7 +94,9 @@ class Reporter(Loggable):
raise UnknownResult("%s" % test.result)
def after_test(self):
self.results.append(self._current_test)
if self._current_test not in self.results:
self.results.append(self._current_test)
self.add_results(self._current_test)
self.out.close()
self.out = None