Skip to content

Commit afa529e

Browse files
CanWang001cfriedt
authored andcommitted
tests: Bluetooth: BR: Disable LOG in smp_general test suite.
Because the WRN logs from LOG module affect the test script recognizes the string. Signed-off-by: Can Wang <[email protected]>
1 parent f9260ae commit afa529e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/bluetooth/classic/smp_general/prj.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ CONFIG_BT=y
22
CONFIG_BT_CLASSIC=y
33
CONFIG_BT_SMP=y
44
CONFIG_BT_SHELL=y
5-
CONFIG_LOG=y
5+
CONFIG_LOG=n
6+
CONFIG_LOG_DEFAULT_LEVEL=0
67
CONFIG_ZTEST=y
78
CONFIG_BT_SETTINGS=y
89
CONFIG_FLASH=y

tests/bluetooth/classic/smp_general/pytest/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def fixture_initialize(request, shell: Shell, dut: DeviceAdapter):
3333
assert hci is not None
3434

3535
shell.exec_command("bt init")
36-
lines = dut.readlines_until("Settings Loaded")
37-
regex = r'Identity: *(?P<bd_addr>([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2}) *\((.*?)\))'
36+
dut.readlines_until("Settings Loaded")
37+
regex = r'(?P<bd_addr>([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2}) *\((.*?)\))'
3838
bd_addr = None
39+
lines = shell.exec_command("bt id-show")
3940
for line in lines:
40-
logger.info(f"Shell log {line}")
4141
m = re.search(regex, line)
4242
if m:
4343
bd_addr = m.group('bd_addr')

0 commit comments

Comments
 (0)