X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fcommon.sh;h=873c52ed630132a92ce9a986a9622e406c0cd007;hb=f7c08d2bd14872ad888df9b95b823ab1784aa737;hp=8f2e88843e6233ceb43775f6ab856f3c816a63e4;hpb=42e546faaf042ef78bb8cbb9339c7fb06f6299dd;p=csit.git diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index 8f2e88843e..873c52ed63 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -116,16 +116,16 @@ function activate_virtualenv () { env_dir="${root_path}/env" req_path=${2-$CSIT_DIR/requirements.txt} rm -rf "${env_dir}" || die "Failed to clean previous virtualenv." - pip3 install --upgrade virtualenv || { + pip3 install virtualenv==20.0.20 || { die "Virtualenv package install failed." } - virtualenv --python=$(which python3) "${env_dir}" || { + virtualenv --no-download --python=$(which python3) "${env_dir}" || { die "Virtualenv creation for $(which python3) failed." } set +u source "${env_dir}/bin/activate" || die "Virtualenv activation failed." set -u - pip3 install --upgrade -r "${req_path}" || { + pip3 install -r "${req_path}" || { die "Requirements installation failed." } # Most CSIT Python scripts assume PYTHONPATH is set and exported. @@ -782,6 +782,19 @@ function select_tags () { ${tfd}/mrr-weekly-${NODENESS}-${FLAVOR}.md | eval ${sed_nics_sub_cmd}) || die ;; + *"report-iterative"* ) + readarray -t test_tag_array <<< $(sed 's/ //g' \ + ${tfd}/report-iter-${NODENESS}-${FLAVOR}.md | + eval ${sed_nics_sub_cmd}) || die + ;; + *"report-coverage"* ) + test_sets=(${TEST_TAG_STRING//:/ }) + # Run only one test set per run + report_file=${test_sets[0]}.md + readarray -t test_tag_array <<< $(sed 's/ //g' \ + ${tfd}/report_coverage/${NODENESS}-${FLAVOR}/${report_file} | + eval ${sed_nics_sub_cmd}) || die + ;; * ) if [[ -z "${TEST_TAG_STRING-}" ]]; then # If nothing is specified, we will run pre-selected tests by