Skip to content
Snippets Groups Projects
Commit 2c1ef5cc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "GD: Make controller properties configurable by cert test"

parents fb2d139e 6a3853ae
No related branches found
No related tags found
No related merge requests found
......@@ -59,12 +59,18 @@ class GdBaseTestClass(BaseTestClass):
for config in self.controller_configs[CONTROLLER_CONFIG_NAME]:
config['verbose_mode'] = self.verbose_mode
try:
controller_properties_file = self.controller_properties_file
except AttributeError:
controller_properties_file = ''
self.info = setup_rootcanal(
dut_module=self.dut_module,
cert_module=self.cert_module,
verbose_mode=self.verbose_mode,
log_path_base=self.log_path_base,
controller_configs=self.controller_configs)
controller_configs=self.controller_configs,
controller_properties_file=controller_properties_file)
self.rootcanal_running = self.info['rootcanal_running']
self.rootcanal_logpath = self.info['rootcanal_logpath']
self.rootcanal_process = self.info['rootcanal_process']
......
......@@ -27,7 +27,12 @@ from cert.os_utils import make_ports_available
from cert.os_utils import TerminalColor
def setup_rootcanal(dut_module, cert_module, verbose_mode, log_path_base, controller_configs):
def setup_rootcanal(dut_module,
cert_module,
verbose_mode,
log_path_base,
controller_configs,
controller_properties_file=''):
info = {}
info['dut_module'] = dut_module
info['cert_module'] = cert_module
......@@ -65,7 +70,12 @@ def setup_rootcanal(dut_module, cert_module, verbose_mode, log_path_base, contro
return info
# Start root canal process
rootcanal_cmd = [rootcanal, str(rootcanal_test_port), str(rootcanal_hci_port), str(rootcanal_link_layer_port)]
rootcanal_cmd = [
rootcanal,
str(rootcanal_test_port),
str(rootcanal_hci_port),
str(rootcanal_link_layer_port), '-controller_properties_file=' + controller_properties_file
]
info['rootcanal_cmd'] = rootcanal_cmd
rootcanal_process = subprocess.Popen(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment