Skip to content

Commit

Permalink
tests: Bluetooth: use unique IDs for l2cap bsim tests
Browse files Browse the repository at this point in the history
If $BASH_SOURCE is the empty string, then those two tests end up with
the same simulation ID. That's not a good time.

Signed-off-by: Jonathan Rico <[email protected]>
  • Loading branch information
jori-nordic authored and MaureenHelm committed Jan 12, 2024
1 parent 162a8f0 commit 3e1a822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXECUTE_TIMEOUT=20

cd ${BSIM_OUT_PATH}/bin

simulation_id=$(basename $BASH_SOURCE)
simulation_id=bluetooth_host_l2cap_credits_prj_conf
bsim_exe=./bs_nrf52_bsim_tests_bsim_bluetooth_host_l2cap_credits_prj_conf

Execute "${bsim_exe}" -v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central -rs=420
Expand All @@ -19,7 +19,7 @@ Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} -D=2 -sim_leng

wait_for_background_jobs

simulation_id=$(basename $BASH_SOURCE)_ecred
simulation_id=bluetooth_host_l2cap_credits_prj_ecred_conf
bsim_exe=./bs_nrf52_bsim_tests_bsim_bluetooth_host_l2cap_credits_prj_ecred_conf

Execute "${bsim_exe}" -v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central -rs=420
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} -D=2 -sim_leng

wait_for_background_jobs

simulation_id=$(basename $BASH_SOURCE)_ecred
simulation_id=bluetooth_host_l2cap_credits_seg_recv_prj_ecred_conf
bsim_exe=./bs_nrf52_bsim_tests_bsim_bluetooth_host_l2cap_credits_seg_recv_prj_ecred_conf

Execute "${bsim_exe}" -v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central -rs=420
Expand Down

0 comments on commit 3e1a822

Please sign in to comment.