~ubuntu-branches/ubuntu/quantal/checkbox/quantal

« back to all changes in this revision

Viewing changes to scripts/run_templates

  • Committer: Package Import Robot
  • Author(s): Javier Collado, Brendan Donegan, Javier Collado, Marc Tardif, Daniel Manrique, Jeff Lane
  • Date: 2012-06-26 16:07:04 UTC
  • mfrom: (15.1.1 lucid-proposed)
  • Revision ID: package-import@ubuntu.com-20120626160704-xukgwy5skzi4hwt4
Tags: 0.14.1
* New upstream release (LP: #1018571)

[Brendan Donegan]
* Fixed up a few things with the gpu_lockup tests. Removed depends,
  renamed to gpu_lockup_suspend to reflect behaviour and removed the
  requirement on Firefox
* Changed suspend_advanced and suspend_advanced_auto to use less
  strict definition of fwts s3 test.

[Javier Collado]
* Make sure that jobs are topologically ordered (LP: #990075)
* Keep job ordering as close to whitelist as possible (LP: #1017951)

[Marc Tardif]
* New version 0.14.1 for Quantal Quetzal development.
* jobs/suspend.txt.in: Fixed trailing newline on otherwise empty line.
* scripts/run_templates: Fixed calls to Popen to use universal_newlines
  to return strings instead of bytes (LP: #1018354)

[Daniel Manrique]
* Fixed duplicate suspend/bluetooth_obex_after_suspend job name.
* scripts/dpkg_resource: Changed encoding from ascii to utf-8 to handle
  non-ascii locales (LP: #1018353)

[Jeff Lane]
* Migrated audio/external-HDMI-playback into checkbox. Modified the
  command to match our other audio tests that save and reset mixer
  levels.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        return env
36
36
 
37
37
    def process(self, args, shell=False):
38
 
        process = Popen(args, shell=shell, stdout=PIPE)
 
38
        process = Popen(
 
39
            args, shell=shell, stdout=PIPE, universal_newlines=True)
39
40
        records = self.process_output(process.stdout)
40
41
 
41
42
        for nr, record in enumerate(records):
50
51
 
51
52
            process = Popen(command,
52
53
                env=env,
53
 
                stdout=self.output)
 
54
                stdout=self.output,
 
55
                universal_newlines=True)
54
56
            process.communicate()
55
57
 
56
58
    def process_output(self, output):