From: Timo Heister Date: Sun, 20 Oct 2013 21:13:20 +0000 (+0000) Subject: treat tests with timeout correctly X-Git-Tag: v8.1.0~567 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afcd96fa490f99d91f06dc2637fcf3afed25c4e4;p=dealii.git treat tests with timeout correctly git-svn-id: https://svn.dealii.org/trunk@31352 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/scripts/makereport.py b/tests/scripts/makereport.py index 8edbbaef50..7a49eef091 100644 --- a/tests/scripts/makereport.py +++ b/tests/scripts/makereport.py @@ -85,13 +85,17 @@ for test in testing.findall("Test"): failtext = 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: + statuslist=['CONFIGURE','BUILD','RUN','DIFF'] + if failstatustxt in statuslist: + status = statuslist.index(failstatustxt) + else: + for meas in test.find('Results').findall('NamedMeasurement'): + if (meas.attrib["name"]=="Exit Code" and meas.find('Value').text=="Timeout"): + status=3 + + if status==4: print >>sys.stderr, "unknown status '%s' in test %s "% (failstatustxt,name) - status=0 + status=0 stati = [" 0 "," 1 "," 2 "," 3 "," + "] line = "%s %s %s%s"%(date,stati[status],branch,name)