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:
Jakub Libosvar 2017-08-16 14:01:04 +02:00
parent 24f02d6a72
commit a41ce8d6bb
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ import fixtures
import netaddr
from neutron_lib import constants as n_const
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import uuidutils
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 import tools
LOG = logging.getLogger(__name__)
UNDEFINED = object()
NS_PREFIX = 'test-'
@ -277,6 +280,7 @@ class RootHelperProcess(subprocess.Popen):
root_helper = config.get_root_helper(utils.cfg.CONF)
cmd = shlex.split(root_helper) + cmd
self.child_pid = None
LOG.debug("Spawning process %s", cmd)
super(RootHelperProcess, self).__init__(cmd, *args, **kwargs)
self._wait_for_child_process()