Skip to content

Commit 77fd5f4

Browse files
aescolarkartben
authored andcommitted
tests/bsim conn_stress/scripts/_conn_stress.sh: Fix
This custom test script had rotten and was not working. Let's fix it. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 8310017 commit 77fd5f4

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/bsim/bluetooth/host/misc/conn_stress/scripts/_conn_stress.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright (c) 2023 Nordic Semiconductor
33
# SPDX-License-Identifier: Apache-2.0
44

5+
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
6+
57
simulation_id="conn_stress"
68
process_ids=""; exit_code=0
79

@@ -20,28 +22,23 @@ function Execute(){
2022
echo "Running $@"
2123
}
2224

23-
: "${BSIM_OUT_PATH:?BSIM_OUT_PATH must be defined}"
24-
25-
#Give a default value to BOARD if it does not have one yet:
26-
BOARD="${BOARD:-nrf52_bsim}"
27-
2825
test_path="bsim_bluetooth_host_misc_conn_stress"
2926
bsim_central_exe_name="bs_nrf52_${test_path}_central_prj_conf"
3027
bsim_peripheral_exe_name="bs_nrf52_${test_path}_peripheral_prj_conf"
3128

3229
# terminate running simulations (if any)
33-
${BSIM_COMPONENTS_PATH}/common/stop_bsim.sh
30+
${BSIM_COMPONENTS_PATH}/common/stop_bsim.sh $simulation_id
3431

3532
# (re)Build the central & peripheral images. Don't continue if build fails.
3633
west build -b ${BOARD} -d build_central central && \
3734
cp build_central/zephyr/zephyr.exe \
3835
"${BSIM_OUT_PATH}/bin/${bsim_central_exe_name}" \
39-
|| exit
36+
|| exit 1
4037

4138
west build -b ${BOARD} -d build_peripheral peripheral && \
4239
cp build_peripheral/zephyr/zephyr.exe \
4340
"${BSIM_OUT_PATH}/bin/${bsim_peripheral_exe_name}" \
44-
|| exit
41+
|| exit 1
4542

4643
cd ${BSIM_OUT_PATH}/bin
4744

0 commit comments

Comments
 (0)