~udienz/ubuntu/natty/checkbox/checkbox.fix.514401

« back to all changes in this revision

Viewing changes to patches/0.8

  • 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:
 
1
#!/usr/bin/python
 
2
 
 
3
import sys
 
4
 
 
5
from StringIO import StringIO
 
6
 
 
7
 
 
8
def Config(filename):
 
9
    globals = {}
 
10
    module = "/usr/share/checkbox/install/config"
 
11
    exec open(module) in globals
 
12
    config = globals["Config"]()
 
13
    config.read(filename)
 
14
 
 
15
    return config
 
16
 
 
17
def main(args):
 
18
    config_file = "/etc/checkbox.d/%s.ini" % args[0]
 
19
    config = Config(config_file)
 
20
 
 
21
    if config.has_section("checkbox/plugins") \
 
22
       and not config.has_option("checkbox/plugins", "blacklist"):
 
23
        config.set("checkbox/plugins", "blacklist", "backend_manager")
 
24
 
 
25
    # Rename options
 
26
    file = open(config_file, "w")
 
27
    config.write(file)
 
28
 
 
29
 
 
30
if __name__ == "__main__":
 
31
    main(sys.argv[1:])