~ubuntu-branches/ubuntu/maverick/checkbox/maverick

« back to all changes in this revision

Viewing changes to scripts/qa_regression_suite

  • Committer: Bazaar Package Importer
  • Author(s): Marc Tardif
  • Date: 2010-08-13 16:23:16 UTC
  • Revision ID: james.westby@ubuntu.com-20100813162316-vuvxkco2tc8kxfgp
Tags: 0.10.2
New upstream release (LP: #617583):
* Fixed sleep_test to check the connection if using network-manager.
* Fixed reporting bugs against alsa-base and xorg (LP: #607214)
* Fixed apport dialog no longer appearing (LP: #607217)
* Reduced data file size for the desktop image.
* Updated report to be more pretty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    if posixpath.exists(directory):
37
37
        return
38
38
 
39
 
    dirname = posixpath.dirname(directory)
40
 
    if not posixpath.exists(dirname):
41
 
        os.makedirs(dirname)
42
 
 
43
39
    process = subprocess.Popen(["bzr", "export", directory, location],
44
40
        stdout=subprocess.PIPE, stderr=subprocess.PIPE)
45
41
    stdout, stderr = process.communicate()
146
142
    if not user:
147
143
        parser.error("SUDO_USER variable not found, must be run with sudo.")
148
144
 
 
145
    dirname = posixpath.dirname(options.directory)
 
146
    if not posixpath.exists(dirname):
 
147
        os.makedirs(dirname)
 
148
        os.chmod(dirname, 0777)
 
149
 
149
150
    pw = pwd.getpwnam(user)
150
151
    os.setgid(pw.pw_gid)
151
152
    os.setuid(pw.pw_uid)