← Back to team overview

touch-packages team mailing list archive

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

 

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  Confirmed
Status in glib2.0 package in Ubuntu:
  Triaged

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