X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=glib%2Fgtester-report;h=5bf076ce28b405bd8989ba5ce940b60bb3bf42fc;hb=2a53b4d0e2c98a14aedf31e38f0ad1fb2e8fe26f;hp=71cbf1aa933feaab74deb9c1312b71c0e063a51b;hpb=08f473ffeff7524e619dc0459c07a981a3b4285c;p=platform%2Fupstream%2Fglib.git
diff --git a/glib/gtester-report b/glib/gtester-report
index 71cbf1a..5bf076c 100755
--- a/glib/gtester-report
+++ b/glib/gtester-report
@@ -14,9 +14,7 @@
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
+# License along with this library; if not, see .
import datetime
import optparse
import sys, re, xml.dom.minidom
@@ -135,6 +133,9 @@ class ReportReader (TreeProcess):
self.info['package'] = node_as_text (dn)
dn = find_child (node, 'version')
self.info['version'] = node_as_text (dn)
+ dn = find_child (node, 'revision')
+ if dn is not None:
+ self.info['revision'] = node_as_text (dn)
def handle_testcase (self, node):
self.last_binary.testcases += [ node ]
result = attribute_as_text (node, 'result', 'status')
@@ -171,7 +172,7 @@ class ReportWriter(object):
def __init__(self, binary_list):
self.binaries = binary_list
- def _error_text(node):
+ def _error_text(self, node):
"""Get a string representing the error children of node."""
rlist = list_children(node, 'error')
txt = ''
@@ -239,6 +240,8 @@ class HTMLReportWriter(ReportWriter):
self.lastchar = message[-1]
def handle_info (self):
self.oprint ('
Package: %(package)s, version: %(version)s
\n' % self.info)
+ if self.info['revision']:
+ self.oprint ('Report generated from: %(revision)s
\n' % self.info)
def handle_text (self, node):
self.oprint (node.nodeValue)
def handle_testcase (self, node, binary):
@@ -372,7 +375,7 @@ class GTestCase(object):
"""A representation of a gtester test result as a pyunit TestCase."""
def __init__(self, case, binary):
- """Create a GTestCase for case `case` from binary program `binary`."""
+ """Create a GTestCase for case 'case' from binary program 'binary'."""
self._case = case
self._binary = binary
# the name of the case - e.g. /dbusmenu/glib/objects/menuitem/props_boolstr