FEM, Tests: Include detailed information in test report after failure

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-10-16 20:35:22 +01:00 committed by Yorik van Havre
parent 7554d2a8a8
commit b4352a18d1

View File

@ -129,6 +129,8 @@ class FemTest(unittest.TestCase):
result = ''
for l in diff:
result += l
if result:
result = "Comparing {} to {} failed!\n".format(file_name1, file_name2) + result
return result
def compare_stats(self, fea, stat_file=None):