Skip to content

Commit ae6cc81

Browse files
committed
tests: bsim: host: minor updates related to twister
Increasing test timeouts for better margins. Removing missed obsolete shell running files. Signed-off-by: Artur Dobrynin <[email protected]>
1 parent 027222c commit ae6cc81

File tree

40 files changed

+52
-113
lines changed

40 files changed

+52
-113
lines changed

scripts/pylib/twister/twisterlib/harness.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -992,12 +992,15 @@ def configure(self, instance):
992992
[os.path.join(self._bsim_out_path, exe_name) for exe_name in exe_names]
993993

994994
def clean_exes(self):
995-
for exe_path in [self._get_exe_path(i) for i in range(len(self._exe_paths))]:
996-
if os.path.exists(exe_path):
997-
os.remove(exe_path)
998-
999995
self._set_start_time()
1000996

997+
try:
998+
for exe_path in [self._get_exe_path(i) for i in range(len(self._exe_paths))]:
999+
if os.path.exists(exe_path):
1000+
os.remove(exe_path)
1001+
except Exception as e:
1002+
logger.warning(f'Failed to clean up bsim exes: {e}')
1003+
10011004
def wait_bsim_ready(self):
10021005
start_time = time.time()
10031006
while time.time() - start_time < Bsim.BSIM_READY_TIMEOUT_S:

tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ common:
44
platform_allow:
55
- nrf52_bsim/native
66
harness: bsim
7-
timeout: 2
7+
timeout: 5
88
harness_config:
99
bsim_exe_name:
1010
- tests_bsim_bluetooth_host_adv_encrypted_css_sample_data_prj_conf

tests/bsim/bluetooth/host/adv/encrypted/ead_sample/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tests:
55
platform_allow:
66
- nrf52_bsim/native
77
harness: bsim
8-
timeout: 2
8+
timeout: 5
99
harness_config:
1010
bsim_exe_name:
1111
- tests_bsim_bluetooth_host_adv_encrypted_ead_sample_prj_conf

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tests:
66
- nrf52_bsim/native
77
- nrf5340bsim/nrf5340/cpunet
88
harness: bsim
9-
timeout: 2
9+
timeout: 5
1010
harness_config:
1111
bsim_exe_name:
1212
- tests_bsim_bluetooth_host_att_eatt_notif_prj_conf

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tests:
55
platform_allow:
66
- nrf52_bsim/native
77
harness: bsim
8-
timeout: 2
8+
timeout: 10
99
harness_config:
1010
bsim_exe_name:
1111
- tests_bsim_bluetooth_host_att_long_read_prj_conf

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ common:
44
platform_allow:
55
- nrf52_bsim/native
66
harness: bsim
7-
timeout: 2
7+
timeout: 5
88

99
tests:
1010
bluetooth.host.att.mtu_update.build_central:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tests:
44
- bluetooth
55
platform_allow:
66
- nrf52_bsim/native
7-
timeout: 10
7+
timeout: 20
88
harness: bsim
99
harness_config:
1010
bsim_exe_name:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ common:
44
- bluetooth
55
platform_allow:
66
- nrf52_bsim/native
7-
timeout: 5
7+
timeout: 20
88
harness: bsim
99
harness_config:
1010
bsim_verbosity: 2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tests:
55
- bluetooth
66
platform_allow:
77
- nrf52_bsim/native
8-
timeout: 2
8+
timeout: 5
99
harness: bsim
1010
harness_config:
1111
bsim_exe_name:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ common:
55
platform_allow:
66
- nrf52_bsim/native
77
harness: bsim
8-
timeout: 2
8+
timeout: 5
99
harness_config:
1010
bsim_verbosity: 2
1111
bsim_sim_length: 60e6

0 commit comments

Comments
 (0)