Skip to content

Commit 70830b5

Browse files
aescolarnashif
authored andcommitted
tests: bsim_bt: audio: Do not reuse sim_ids
Even if the tests are not run in parallel do not reuse sim_ids as that overwrites the result data preventing re-running in check mode, and inspecting the test results. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent c29dcb3 commit 70830b5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

tests/bluetooth/bsim_bt/bsim_test_audio/test_scripts/broadcast_audio.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7-
SIMULATION_ID="broadcaster"
87
VERBOSITY_LEVEL=2
98
PROCESS_IDS=""; EXIT_CODE=0
109

@@ -26,6 +25,8 @@ cd ${BSIM_OUT_PATH}/bin
2625

2726
printf "\n\n======== Broadcaster test =========\n\n"
2827

28+
SIMULATION_ID="broadcaster"
29+
2930
Execute ./bs_${BOARD}_tests_bluetooth_bsim_bt_bsim_test_audio_prj_conf \
3031
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source -rs=23
3132

@@ -43,6 +44,8 @@ done
4344

4445
printf "\n\n======== Broadcaster sink disconnect test =========\n\n"
4546

47+
SIMULATION_ID="broadcaster_sink_disconnect"
48+
4649
Execute ./bs_${BOARD}_tests_bluetooth_bsim_bt_bsim_test_audio_prj_conf \
4750
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source -rs=23
4851

tests/bluetooth/bsim_bt/bsim_test_audio/test_scripts/csip.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Basic CSIP test. A set coordinator connects to multiple set members
88
# lock thems, unlocks them and disconnects.
9-
SIMULATION_ID="csip"
9+
1010
VERBOSITY_LEVEL=2
1111
PROCESS_IDS=""; EXIT_CODE=0
1212

@@ -28,6 +28,9 @@ cd ${BSIM_OUT_PATH}/bin
2828

2929
# NORMAL TEST
3030
printf "\n\n======== Running normal test ========\n\n"
31+
32+
SIMULATION_ID="csip"
33+
3134
Execute ./bs_${BOARD}_tests_bluetooth_bsim_bt_bsim_test_audio_prj_conf \
3235
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=csip_set_coordinator \
3336
-RealEncryption=1 -rs=1
@@ -55,6 +58,9 @@ done
5558
PROCESS_IDS="";
5659

5760
# TEST WITH FORCE RELEASE
61+
62+
SIMULATION_ID="csip_forced_release"
63+
5864
printf "\n\n======== Running test with forced release of lock ========\n\n"
5965
Execute ./bs_${BOARD}_tests_bluetooth_bsim_bt_bsim_test_audio_prj_conf \
6066
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=csip_set_coordinator \
@@ -81,6 +87,9 @@ for PROCESS_ID in $PROCESS_IDS; do
8187
done
8288

8389
# TEST WITH SIRK ENC
90+
91+
SIMULATION_ID="csip_sirk_encrypted"
92+
8493
printf "\n\n======== Running test with SIRK encrypted ========\n\n"
8594
Execute ./bs_${BOARD}_tests_bluetooth_bsim_bt_bsim_test_audio_prj_conf \
8695
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=csip_set_coordinator \

0 commit comments

Comments
 (0)