]> https://gitweb.dealii.org/ - dealii.git/commitdiff
report correct error code
authorTimo Heister <timo.heister@gmail.com>
Wed, 16 Oct 2013 14:16:55 +0000 (14:16 +0000)
committerTimo Heister <timo.heister@gmail.com>
Wed, 16 Oct 2013 14:16:55 +0000 (14:16 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31257 0785d39b-7218-0410-832d-ea1e28bc413d

tests/scripts/makereport.py

index 2a59b282c6fd8aecf495dab92b97a4844476f8e5..2b0c5ca1c8d75dcfac735d161f440f92ffb2fac9 100644 (file)
@@ -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 )

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.