ci: do not export BSIM env vars if bsim is not available
When running run_ci.sh locally with: ./scripts/ci/run_ci.sh -l -b master -R upstream/master.. we export BSIM_OUT_PATH unconditionally which causes sanitycheck to fail on nrf52_bsim (it depends on BSIM_OUT_PATH variable). Check if the path defined in BSIM_OUT_PATH is available and unset env. variable if it is not. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
0790fdf0d7
commit
4132ee3a05
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ SANITYCHECK_OPTIONS=" --inline-logs -N"
|
|||
SANITYCHECK_OPTIONS_RETRY="${SANITYCHECK_OPTIONS} --only-failed --outdir=out-2nd-pass"
|
||||
SANITYCHECK_OPTIONS_RETRY_2="${SANITYCHECK_OPTIONS} --only-failed --outdir=out-3nd-pass"
|
||||
export BSIM_OUT_PATH="${BSIM_OUT_PATH:-/opt/bsim/}"
|
||||
if [ ! -d "${BSIM_OUT_PATH}" ]; then
|
||||
unset BSIM_OUT_PATH
|
||||
fi
|
||||
export BSIM_COMPONENTS_PATH="${BSIM_OUT_PATH}/components/"
|
||||
BSIM_BT_TEST_RESULTS_FILE="./bsim_bt_out/bsim_results.xml"
|
||||
WEST_COMMANDS_RESULTS_FILE="./pytest_out/west_commands.xml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue