~ubuntu-branches/ubuntu/oneiric/checkbox/oneiric-updates

« back to all changes in this revision

Viewing changes to apport/checkbox.py

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Marc Tardif
  • Date: 2010-03-09 16:58:36 UTC
  • Revision ID: james.westby@ubuntu.com-20100309165836-26f22oe6ubppzx0d
Tags: 0.9
[ Marc Tardif ]
New upstream release (LP: #532882):
* Introduced job_prompt plugin to treat all jobs (suites, tests, etc.) as composites.
* Replaced the registry and resource scripts and centralized job iteration.
* Replaced dependency on dbus by using sudo/gksu/kdesudo instead.
* Replaced mktemp with mkdtemp for security purposes.
* Fixed strings in fingerprint and modem tests (LP: #457759)
* Fixed client side validation of Launchpad form (LP: #438671)
* Added device information to tags when reporting bugs with apport.
* Added shorthands for blacklist-file and whitelist-file.
* Added support for apport default configuration (LP: #465447)
* Added support for scrolled options list (LP: #411526)
* Added support for tests generated by suites to run as root.
* Added support for requirements in attachments.
* Added support for armv7l processor
* Added Autotest integration
* Added LTP integration
* Added Phoronix integration
* Added qa-regression-testing integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
(c) 2009 Canonical Ltd.
4
4
Author: David Murphy <schwuk@ubuntu.com>
5
5
'''
 
6
import os
6
7
 
7
 
from apport.hookutils import *
8
 
from os import path
9
 
from xdg.BaseDirectory import xdg_cache_home
10
8
 
11
9
def add_info(report):
12
 
    SYSTEM = path.join(xdg_cache_home, 'checkbox', 'system')
13
 
    SUBMISSION = path.join(xdg_cache_home, 'checkbox', 'submission')
 
10
    HOME = os.environ.get('HOME', '/')
 
11
    CACHE_HOME = os.environ.get('XDG_CACHE_HOME',
 
12
        os.path.join(HOME, '.cache'))
 
13
    SYSTEM = os.path.join(CACHE_HOME, 'checkbox', 'system')
 
14
    SUBMISSION = os.path.join(CACHE_HOME, 'checkbox', 'submission')
14
15
 
15
16
    try:
16
17
        report['CheckboxSystem'] = open(SYSTEM).read()