From: Timo Heister Date: Wed, 16 Oct 2013 14:16:55 +0000 (+0000) Subject: report correct error code X-Git-Tag: v8.1.0~570^2~45 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1c34f917a8cdd31abec530ebe44068ec21d58dd;p=dealii.git report correct error code git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31257 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 )