~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/devscripts/ec2test/testrunner.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-04-01 20:24:14 UTC
  • mfrom: (10271.3.5 ec-log-in-as-ubuntu)
  • Revision ID: launchpad@pqm.canonical.com-20100401202414-u3whl6wlualf047x
[r=jml][ui=none] Change ec2 scripts to use the ubuntu user instead of
        root so that we can build AMIs based on the official Ubuntu ones.

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
        as_user = user_connection.perform
322
322
        # Set up bazaar.conf with smtp information if necessary
323
323
        if self.email or self.message:
324
 
            as_user('mkdir .bazaar')
 
324
            as_user('[ -d .bazaar ] || mkdir .bazaar')
325
325
            bazaar_conf_file = user_connection.sftp.open(
326
326
                ".bazaar/bazaar.conf", 'w')
327
327
            bazaar_conf_file.write(