From afcd96fa490f99d91f06dc2637fcf3afed25c4e4 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 20 Oct 2013 21:13:20 +0000 Subject: [PATCH] treat tests with timeout correctly git-svn-id: https://svn.dealii.org/trunk@31352 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/scripts/makereport.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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) -- 2.39.5