]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
treat tests with timeout correctly
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 20 Oct 2013 21:13:20 +0000 (21:13 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 20 Oct 2013 21:13:20 +0000 (21:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@31352 0785d39b-7218-0410-832d-ea1e28bc413d

tests/scripts/makereport.py

index 8edbbaef50ec70b1b0265bea14db2120aaf24ca3..7a49eef091da7bf674d4a265a45200f14ac30a52 100644 (file)
@@ -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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.