tests: Log spawned processes by RootHelperProcess
This patch logs the command spawned by RootHelperProcess, it is handy when debugging failed functional tests on upstream gate. Change-Id: I743a223c4ff4882fdd760a20823150558d5e5f4a
This commit is contained in:
parent
24f02d6a72
commit
a41ce8d6bb
|
@ -29,6 +29,7 @@ import fixtures
|
||||||
import netaddr
|
import netaddr
|
||||||
from neutron_lib import constants as n_const
|
from neutron_lib import constants as n_const
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log as logging
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
@ -46,6 +47,8 @@ from neutron.plugins.ml2.drivers.linuxbridge.agent import \
|
||||||
from neutron.tests.common import base as common_base
|
from neutron.tests.common import base as common_base
|
||||||
from neutron.tests import tools
|
from neutron.tests import tools
|
||||||
|
|
||||||
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
UNDEFINED = object()
|
UNDEFINED = object()
|
||||||
|
|
||||||
NS_PREFIX = 'test-'
|
NS_PREFIX = 'test-'
|
||||||
|
@ -277,6 +280,7 @@ class RootHelperProcess(subprocess.Popen):
|
||||||
root_helper = config.get_root_helper(utils.cfg.CONF)
|
root_helper = config.get_root_helper(utils.cfg.CONF)
|
||||||
cmd = shlex.split(root_helper) + cmd
|
cmd = shlex.split(root_helper) + cmd
|
||||||
self.child_pid = None
|
self.child_pid = None
|
||||||
|
LOG.debug("Spawning process %s", cmd)
|
||||||
super(RootHelperProcess, self).__init__(cmd, *args, **kwargs)
|
super(RootHelperProcess, self).__init__(cmd, *args, **kwargs)
|
||||||
self._wait_for_child_process()
|
self._wait_for_child_process()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue