Change-Id: I76d3868c7e4b7710b56fd04ef7cb299c709b028f
- bool:
name: DELETE_ENV_BEFORE_RUN
default: false
+ description: "Delete only used env (9.x_virtual_lab+ENV_NAME_SUFFIX)"
+ - bool:
+ name: CLEANUP_ALL_BEFORE_RUN
+ default: false
+ description: "Delete ALL envs before run (for swarm run)"
- string:
name: SNAPSHOT_PARAMS_ID
default: lastSuccessfulBuild
source "${VENV_PATH}/bin/activate"
pip install -U -r fuelweb_test/requirements.txt > logs/pip_install_output.log
export PYTHONPATH="${WORKSPACE}"
- if [[ $DELETE_ENV_BEFORE_RUN = true ]] ; then dos.py erase $ENV_NAME || true; fi
+ if [[ $DELETE_ENV_BEFORE_RUN = true ]] ; then
+ dos.py erase $ENV_NAME || true
+ fi
+ if [[ $CLEANUP_ALL_BEFORE_RUN = true ]] ; then
+ dos.py erase-old 1s --force
+ fi
python run_system_test.py run -q --nologcapture --with-xunit "${TEST_GROUP}"
deactivate