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

Ndubi Abenga 1036260 at bugs.launchpad.net
Mon Aug 13 15:44:08 UTC 2012


Public bug reported:

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'

** Affects: glib2.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: glib gtester gtester-report

-- 
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 “glib2.0” package in Ubuntu:
  New

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/ubuntu/+source/glib2.0/+bug/1036260/+subscriptions




More information about the foundations-bugs mailing list