Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Bluetooth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_modules_Bluetooth
Commits
2c1ef5cc
Commit
2c1ef5cc
authored
3 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "GD: Make controller properties configurable by cert test"
parents
fb2d139e
6a3853ae
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
system/gd/cert/gd_base_test.py
+7
-1
7 additions, 1 deletion
system/gd/cert/gd_base_test.py
system/gd/cert/gd_base_test_lib.py
+12
-2
12 additions, 2 deletions
system/gd/cert/gd_base_test_lib.py
with
19 additions
and
3 deletions
system/gd/cert/gd_base_test.py
+
7
−
1
View file @
2c1ef5cc
...
...
@@ -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
'
]
...
...
This diff is collapsed.
Click to expand it.
system/gd/cert/gd_base_test_lib.py
+
12
−
2
View file @
2c1ef5cc
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment