~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/test_mgmt/execution_management.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:
53
53
                         , 'executors'
54
54
                         , 'executor_start_count'
55
55
                         , 'executor_current_count'
 
56
                         , 'record_flag'
 
57
                         , 'start_and_exit'
56
58
                         ]
57
59
        
58
60
        self.debug = variables['debug']
59
61
        self.verbose = variables['verbose']
60
62
        self.force = variables['force']
61
63
        self.record_flag = variables['record']
 
64
        # We are currently single-threaded execution-wise
 
65
        # but in the future, we will likely need to revamp
 
66
        # how we deal with start-and-exit if we have multiple
 
67
        # executors - even if we force-set the executor-count
 
68
        # to 1.
 
69
        self.start_and_exit = variables['startandexit']
62
70
        self.executors = {}
63
71
        self.executor_name_base = 'testbot'
64
72
        self.executor_start_count = 0
91
99
            if self.verbose:
92
100
                self.logging.verbose("Starting executor: %s" %(executor_name))
93
101
                # thread.start_new(executor.execute,()) # sigh...one day...damned drizzletest!
94
 
            executor.execute()
 
102
            executor.execute(self.start_and_exit)
95
103
        time.sleep(3)
96
104
        while self.has_running_executors():
97
105
            pass