[Bug 1036260] Re: Running gtester-report on gtester output raises KeyError

Jason Conti 1036260 at bugs.launchpad.net
Tue Aug 14 18:43:41 UTC 2012


Thanks for the bug report. I found an upstream bug here:
https://bugzilla.gnome.org/show_bug.cgi?id=668035 and I submitted a
simple patch to fix it.

You can workaround the issue by manually adding:

<info>
<package>PACKAGENAME</package>
<version>VERSION</version>
<revision>REVISION</revision>
</info>

to the generated xml. It seems that is exactly what glib does, to
collect multiple reports together. (See Makefile.decl in the glib
source)

** Bug watch added: GNOME Bug Tracker #668035
   https://bugzilla.gnome.org/show_bug.cgi?id=668035

** Also affects: glib via
   https://bugzilla.gnome.org/show_bug.cgi?id=668035
   Importance: Unknown
       Status: Unknown

** Changed in: glib2.0 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1036260

Title:
  Running gtester-report on gtester output raises KeyError

Status in The "G" Library - GLib:
  Unknown
Status in “glib2.0” package in Ubuntu:
  Confirmed

Bug description:
  I'm trying to set up some unit tests on a bunch of C code I'm writing,
  and decided to use GLib's testing framework.

  Running the tests using "gtester test-executable -o output.xml"  runs
  okay, but running gtester-report to generate a html report raises an
  error. The output is:

  ...

  At the beginning, it outputs valid html, until  the beginning of the
  <body> tag:

  ...
  <body>
  <h2>GTester Unit Test Report</h2>
  Traceback (most recent call last):
    File "/usr/bin/gtester-report", line 492, in <module>
      main()
    File "/usr/bin/gtester-report", line 486, in main
      HTMLReportWriter(rr.get_info(), rr.binary_list()).printout()
    File "/usr/bin/gtester-report", line 350, in printout
      self.handle_info ()
    File "/usr/bin/gtester-report", line 244, in handle_info
      self.oprint ('<h3>Package: %(package)s, version: %(version)s</h3>\n' % self.info)
  KeyError: 'package'

To manage notifications about this bug go to:
https://bugs.launchpad.net/glib/+bug/1036260/+subscriptions




More information about the foundations-bugs mailing list