~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/test_mgmt/test_execution.py

  • Committer: Lee Bieber
  • Date: 2011-01-30 22:14:18 UTC
  • mfrom: (2124.2.11 dbqp_work)
  • Revision ID: kalebral@gmail.com-20110130221418-3g5gmlrllccq4eeb
Merge Patrick - fix bug 709861: dbqp not running on mac osx
Merge Patrick - fix bug 709879: dbqp needs --start-and-exit option

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
# imports
32
32
import os
 
33
import sys
33
34
 
34
35
class testExecutor():
35
36
    """ class for handling the execution of testCase
113
114
 
114
115
        return(master_count, slave_count, server_options)
115
116
 
116
 
    def execute(self):
 
117
    def execute(self, start_and_exit):
117
118
        """ Execute a test case.  The details are *very* mode specific """
118
119
        self.status = 1 # we are running
119
120
        keep_running = 1
129
130
                self.current_test_status = 'fail'
130
131
                self.set_server_status(self.current_test_status)
131
132
                output = ''
 
133
            if start_and_exit:
 
134
                # TODO:  Report out all started servers via server_manager/server objects?
 
135
                self.logging.info("User specified --start-and-exit.  dbqp.py exiting and leaving servers running...")
 
136
                sys.exit(0)
132
137
            else:
133
138
                self.execute_testCase()
134
139
            self.test_manager.record_test_result( self.current_testcase