Skip to content

Commit cf6a382

Browse files
aescolarfabiobaltieri
authored andcommitted
tests/bsim host/privacy/peripheral: Minor fixes to allow equality check
Minor fixes in this test script to: * Start with an empty flash even if there was a left over flash file on disk * Not overwrite the simulation activity from the first part of the test in the second part of the test, to allow looking into the traffic and to allow rerunning the test in check mode, to ensure there is no radio activity changes when another change is done. * Set the simulation id to something more unique (it was just "peripheral" before which is too easy to be repeated in another test) Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 4c5a96e commit cf6a382

File tree

1 file changed

+6
-6
lines changed
  • tests/bsim/bluetooth/host/privacy/peripheral/test_scripts

1 file changed

+6
-6
lines changed

tests/bsim/bluetooth/host/privacy/peripheral/test_scripts/run_test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ source "${bash_source_dir}/_env.sh"
99
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
1010

1111
verbosity_level=2
12-
simulation_id="$(basename "$(realpath "$bash_source_dir/..")")"
12+
simulation_id="host_privacy_peripheral"
1313
EXECUTE_TIMEOUT=30
1414

1515
cd ${BSIM_OUT_PATH}/bin
1616

1717
Execute "$central_exe" \
1818
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central -RealEncryption=1 \
19-
-flash="${simulation_id}.central.log.bin"
19+
-flash="${simulation_id}.central.log.bin" -flash_erase
2020

2121

2222
Execute "$peripheral_exe" \
2323
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral -RealEncryption=1 \
24-
-flash="${simulation_id}.peripheral.log.bin"
24+
-flash="${simulation_id}.peripheral.log.bin" -flash_erase
2525

2626

2727
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
@@ -30,16 +30,16 @@ Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
3030
wait_for_background_jobs
3131

3232
Execute "$central_exe" \
33-
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central -RealEncryption=1 \
33+
-v=${verbosity_level} -s=${simulation_id}.2 -d=0 -testid=central -RealEncryption=1 \
3434
-flash="${simulation_id}.central.log.bin" -flash_rm
3535

3636

3737
Execute "$peripheral_exe" \
38-
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral -RealEncryption=1 \
38+
-v=${verbosity_level} -s=${simulation_id}.2 -d=1 -testid=peripheral -RealEncryption=1 \
3939
-flash="${simulation_id}.peripheral.log.bin" -flash_rm
4040

4141

42-
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
42+
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id}.2 \
4343
-D=2 -sim_length=70e6 $@
4444

4545
wait_for_background_jobs

0 commit comments

Comments
 (0)