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

Bug Watch Updater 1036260 at bugs.launchpad.net
Wed Aug 15 19:34:16 UTC 2012


** Changed in: glib
       Status: Unknown => New

** Changed in: glib
   Importance: Unknown => Medium

-- 
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:
  New
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