tests/bsim/run_parallel: Create folder for results xml if missing

Create the folder for the results if it does not exist.
Fixes these warnings in CI:
```
touch: cannot touch '/__w/zephyr/zephyr/./bsim_bt/
53_bsim_results.xml': No such file or directory
realpath: /__w/zephyr/zephyr/./bsim_bt/
53_bsim_results.xml: No such file or directory
```

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-03-28 11:47:58 +01:00 committed by Fabio Baltieri
commit dfe34ca03a

View file

@ -63,6 +63,8 @@ tmp_res_file=tmp.xml
all_cases_a=( $all_cases ) all_cases_a=( $all_cases )
n_cases=$((${#all_cases_a[@]})) n_cases=$((${#all_cases_a[@]}))
mkdir -p $(dirname ${RESULTS_FILE})
touch ${RESULTS_FILE} touch ${RESULTS_FILE}
echo "Attempting to run ${n_cases} cases (logging to \ echo "Attempting to run ${n_cases} cases (logging to \
`realpath ${RESULTS_FILE}`)" `realpath ${RESULTS_FILE}`)"