From 56582a77aaee28a3b497e81d8395fb6a715b9c2d Mon Sep 17 00:00:00 2001 From: heister Date: Wed, 16 Oct 2013 14:16:55 +0000 Subject: [PATCH] report correct error code git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31257 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/scripts/makereport.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/scripts/makereport.py b/tests/scripts/makereport.py index 2a59b282c6..2b0c5ca1c8 100644 --- a/tests/scripts/makereport.py +++ b/tests/scripts/makereport.py @@ -78,10 +78,21 @@ for test in testing.findall("Test"): if group=="all-headers": name = group + "/" + "-".join(name.split('/')[1:]) + status = 4 if fail: - line = "%s 3 %s%s"%(date,branch,name) - else: - line = "%s + %s%s"%(date,branch,name) + failtext = test.find('Results').find('Measurement').find('Value').text.encode('utf-8') + failtextlines = failtext.replace('"','').split('\n') + failstatustxt = failtextlines[0].split(' ')[-1] + for i in range(0,len(failtextlines)): + statuslist=['CONFIGURE','BUILD','RUN','DIFF'] + if failstatustxt in statuslist: + status = statuslist.index(failstatustxt) + else: + print "unknown status '%s'"%failstatustxt + status=0 + + stati = [" 0 "," 1 "," 2 "," 3 "," + "] + line = "%s %s %s%s"%(date,stati[status],branch,name) if group not in tests: tests[group]=[] tests[group].append( line ) -- 2.39.5