Avoid eventlet monkey patching for the tempest plugin

do the monkey patch for each modules instead.

Closes-Bug: #1571486
Change-Id: Ia698dcf99f3950aeabffc44d85e4b33f56714afd
This commit is contained in:
YAMAMOTO Takashi 2016-04-26 00:10:31 -05:00
parent b3a41f4a31
commit 16ca061abc
5 changed files with 42 additions and 15 deletions

View File

@ -1,15 +0,0 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from neutron.common import eventlet_utils
eventlet_utils.monkey_patch()

View File

@ -0,0 +1,16 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from neutron.common import eventlet_utils
eventlet_utils.monkey_patch()

View File

@ -0,0 +1,16 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from neutron.common import eventlet_utils
eventlet_utils.monkey_patch()

View File

@ -20,6 +20,11 @@ discovery.
import os.path import os.path
from neutron.common import eventlet_utils
eventlet_utils.monkey_patch()
def load_tests(loader, tests, pattern): def load_tests(loader, tests, pattern):
this_dir = os.path.dirname(__file__) this_dir = os.path.dirname(__file__)

View File

@ -15,5 +15,10 @@
from oslo_config import cfg from oslo_config import cfg
from neutron.common import eventlet_utils
cfg.CONF.use_stderr = False cfg.CONF.use_stderr = False
eventlet_utils.monkey_patch()