~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Michael Hudson
  • Date: 2009-09-16 05:04:06 UTC
  • mto: This revision was merged to the branch mainline in revision 9515.
  • Revision ID: michael.hudson@canonical.com-20090916050406-c0vdvdjea5vwv1w0
flesh out demo command

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        # close ssh connection
476
476
        user_connection.close()
477
477
 
478
 
    def start_demo_webserver(self):
 
478
    def run_demo_webserver(self):
479
479
        """Turn ec2 instance into a demo server."""
 
480
        self.configure_system()
 
481
        self.prepare_tests()
480
482
        user_connection = self._instance.connect_as_user()
481
483
        p = user_connection.perform
 
484
        p('make -C /var/launchpad/test schema')
482
485
        p('mkdir -p /var/tmp/bazaar.launchpad.dev/static')
483
486
        p('mkdir -p /var/tmp/bazaar.launchpad.dev/mirrors')
484
487
        p('sudo a2enmod proxy > /dev/null')
508
511
        user_connection.close()
509
512
 
510
513
    def run_tests(self):
 
514
        self.configure_system()
 
515
        self.prepare_tests()
511
516
        user_connection = self._instance.connect_as_user()
512
517
 
513
518
        # Make sure we activate the failsafe --shutdown feature.  This will
584
589
                sftp.get('/var/www/summary.log', self.file)
585
590
                sftp.close()
586
591
        user_connection.close()
 
592
        return not self.headless
587
593
 
588
594
    def get_remote_test_options(self):
589
595
        """Return the test command that will be passed to ec2test-remote.py.