]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix: *blush*
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 20 Oct 2013 23:25:21 +0000 (23:25 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 20 Oct 2013 23:25:21 +0000 (23:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@31365 0785d39b-7218-0410-832d-ea1e28bc413d

tests/scripts/makereport.py

index 5295c47f870c33aea527b876b61d10c56520442f..d7c62a47d2f4749968c6debc4d6c96dbf93efd4e 100644 (file)
@@ -82,15 +82,16 @@ for test in testing.findall("Test"):
     failstatustxt = failtextlines[0].split(' ')[-1]
 
     statuslist=['CONFIGURE','BUILD','RUN','DIFF','PASSED']
+    status=-1
     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
-            else:
-                print >>sys.stderr, "unknown status '%s' in test %s "% (failstatustxt,name)
-                status=0
+        if status == -1:
+            print >>sys.stderr, "unknown status '%s' in test %s "% (failstatustxt,name)
+            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.