~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /usr/bin/env python
2
 
# -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
# -*- mode: python; indent-tabs-mode: nil; -*-
3
3
# vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
4
#
5
5
# Copyright (C) 2010 Patrick Crews
70
70
        # to 1.
71
71
        self.start_and_exit = variables['startandexit']
72
72
        self.executors = {}
73
 
        self.executor_name_base = 'testbot'
 
73
        self.executor_name_base = 'bot'
74
74
        self.executor_start_count = 0
75
75
        self.executor_current_count = 0
76
76
        # We will eventually allow this to be set
79
79
        self.executor_count = 1 
80
80
        self.executor_type = executor_type
81
81
 
82
 
        if self.debug:
83
 
            self.logging.debug_class(self)
 
82
        self.logging.debug_class(self)
84
83
 
85
84
 
86
85
    def execute_tests(self):
98
97
 
99
98
        # fire up the testExecutors and let them rip it up
100
99
        for executor_name, executor in self.executors.items():
101
 
            if self.verbose:
102
 
                self.logging.verbose("Starting executor: %s" %(executor_name))
103
 
                # thread.start_new(executor.execute,()) # sigh...one day...damned drizzletest!
 
100
            self.logging.verbose("Starting executor: %s" %(executor_name))
 
101
            # thread.start_new(executor.execute,()) # sigh...one day...damned drizzletest!
104
102
            executor.execute(self.start_and_exit)
105
103
        while self.has_running_executors():
106
104
            pass
130
128
    def create_test_executor(self, executor_name):
131
129
        """ Create a single testExecutor """
132
130
        
133
 
        if self.verbose:
134
 
                self.logging.verbose("Creating %s" %(executor_name))
 
131
        self.logging.verbose("Creating %s" %(executor_name))
135
132
        new_executor = self.executor_type( self, executor_name
136
133
                                         , self.verbose, self.debug)
137
134
        self.log_executor(executor_name, new_executor)