Skip to content

Commit 87f98dd

Browse files
committed
scripts: twister: fixing compliance checks and minor issues
Fixing minor compliance errors and issues popping up after rebase. Signed-off-by: Artur Dobrynin <[email protected]>
1 parent a8011cd commit 87f98dd

File tree

7 files changed

+26
-103
lines changed

7 files changed

+26
-103
lines changed

scripts/pylib/twister/twisterlib/harness.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
from __future__ import annotations
32

43
import glob
54
import json

scripts/pylib/twister/twisterlib/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
from twisterlib.environment import ZEPHYR_BASE
4242

4343
sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
44+
4445
from domains import Domains
4546
from twisterlib.coverage import run_coverage_instance
4647
from twisterlib.environment import TwisterEnv
@@ -1792,7 +1793,7 @@ def run(self):
17921793
harness.bsim_run(instance.handler.get_test_timeout())
17931794
else:
17941795
instance.status = TwisterStatus.ERROR
1795-
instance.reason = str("BSIM not ready")
1796+
instance.reason = "BSIM not ready"
17961797
logger.error(instance.reason)
17971798
else:
17981799
instance.handler.handle(harness)

tests/bsim/bluetooth/host/att/read_fill_buf/testcase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tests:
1414
bsim_verbosity: 2
1515
bsim_sim_length: 60e6
1616
bsim_test_ids:
17-
- the_test
18-
- the_test
17+
- cli
18+
- srv
1919
bsim_options:
2020
- -RealEncryption=1

tests/bsim/bluetooth/host/gatt/ccc_store/test_scripts/ccc_store_no_long_wq.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

tests/bsim/bluetooth/host/gatt/ccc_store/testcase.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tests:
2424
- '["-flash=ccc_store_client.log.bin", "-flash=ccc_store_server.log.bin"]'
2525
- -argstest
2626
- '10'
27-
bluetooth.host.gatt.ccc_no_store_on_write:
27+
bluetooth.host.gatt.ccc_store_no_store_on_write:
2828
harness_config:
2929
bsim_exe_name:
3030
- tests_bsim_bluetooth_host_gatt_ccc_store_overlay-no_store_on_write_conf
@@ -37,6 +37,12 @@ tests:
3737
EXTRA_CONF_FILE=overlay-no_store_on_write.conf
3838
bluetooth.host.gatt.ccc_store_no_long_wq:
3939
harness_config:
40-
bsim_exe_name: tests_bsim_bluetooth_host_gatt_ccc_store_overlay-no_long_wq_conf
40+
bsim_exe_name:
41+
- tests_bsim_bluetooth_host_gatt_ccc_store_overlay-no_long_wq_conf
42+
bsim_options:
43+
- '["-flash=ccc_store_no_long_wq_client.log.bin",
44+
"-flash=ccc_store_no_long_wq_server.log.bin"]'
45+
- -argstest
46+
- '10'
4147
extra_args:
4248
EXTRA_CONF_FILE=overlay-no_long_wq.conf

tests/bsim/bluetooth/host/security/ccc_update/test_scripts/ccc_update_no_long_wq.sh

Lines changed: 0 additions & 53 deletions
This file was deleted.

tests/bsim/bluetooth/host/security/ccc_update/testcase.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,32 @@ common:
1515
bsim_options:
1616
- -RealEncryption=1
1717
- -flash_rm
18-
- "['-flash=ccc_update_client.log.bin', '-flash=ccc_update_bad_client.log.bin',
19-
'-flash=ccc_update_server.log.bin']"
2018

2119
tests:
2220
bluetooth.host.security.ccc_update:
2321
harness_config:
2422
bsim_exe_name:
2523
- tests_bsim_bluetooth_host_security_ccc_update_prj_conf
24+
bsim_options:
25+
- "['-flash=ccc_update_client.log.bin', '-flash=ccc_update_bad_client.log.bin',
26+
'-flash=ccc_update_server.log.bin']"
27+
bluetooth.host.security.ccc_update_no_lazy_load:
2628
harness_config:
2729
bsim_exe_name:
2830
- tests_bsim_bluetooth_host_security_ccc_update_overlay-no_lazy_load_conf
31+
bsim_options:
32+
- "['-flash=ccc_update_no_lazy_load_client.log.bin',
33+
'-flash=ccc_update_no_lazy_load_bad_client.log.bin',
34+
'-flash=ccc_update_no_lazy_load_server.log.bin']"
2935
extra_args:
3036
EXTRA_CONF_FILE=overlay-no_lazy_load.conf
3137
bluetooth.host.security.ccc_update_no_long_wq:
3238
harness_config:
33-
bsim_exe_name: tests_bsim_bluetooth_host_security_ccc_update_overlay-no_long_wq_conf
39+
bsim_exe_name:
40+
- tests_bsim_bluetooth_host_security_ccc_update_overlay-no_long_wq_conf
41+
bsim_options:
42+
- "['-flash=ccc_update_no_long_wq_client.log.bin',
43+
'-flash=ccc_update_no_long_wq_bad_client.log.bin',
44+
'-flash=ccc_update_no_long_wq_server.log.bin']"
3445
extra_args:
3546
EXTRA_CONF_FILE=overlay-no_long_wq.conf

0 commit comments

Comments
 (0)