Full-test-cycle-wrapper: Add support for point releases
PATCH 1/1 Full-test-cycle-wrapper: Add support for point releases
From: Jose Perez Carranza <[email protected]>
Add support to scenarios were a execution is needed for branch different from master, delete lsb-joule environment as is not supported and add logic to do the “Testopia connection” modular and reusable by other scripts.
Signed-off-by Jose Perez Carranza <[email protected]>
--- scripts/full-test-cycle-wrapper.sh | 16 +++++++++++--- testopia_update.py | 44 ++++++++++++++++++++++++-------------- 2 files changed, 41 insertions(+), 19 deletions(-)
scripts/full-test-cycle-wrapper.sh +13 -3
@@ -51,6 +51,13 @@ create_test_run(){ OPT="-o $2" fi +#If point release is used then milestone is not asigned + if [[ $MILESTONE == M* ]]; then + BUILD_MILESTONE="$VERSION $MILESTONE" + else + BUILD_MILESTONE="$VERSION$MILESTONE" + fi + #echo "############ CREATING TEST RUNS FOR - $1 - #############" for ENV in "${ENVIRONMENTS[@]}" do
@@ -61,7 +68,7 @@ create_test_run(){ do #call the script that creates Test Runs ./testopia_update.py --config $CONFIG_FILE -a $ACTION -p "${1}" -c $EXTP -b $BRANCH \ - -e "$ENV" --project-version $VERSION --project-milestone "$VERSION $MILESTONE" \ + -e "$ENV" --project-version $VERSION --project-milestone "$BUILD_MILESTONE" \ --project-date $PJDATE --project-revision $RELEASE-$REVISION $OPT $TEST_PLAN --verbose done done
@@ -119,7 +126,7 @@ create_meta-intel(){ create_test_run "${1}" "core-image-sato-sdk_ANYBSP" #BSP Autos LSB - ENVIRONMENTS=("core2-32_lsb_MMAX32" "corei7-64_lsb_NUC" "corei7-64_lsb_MMAX64" "corei7-64_lsb_Joule" "corei7-64_lsb_CherryHill") + ENVIRONMENTS=("core2-32_lsb_MMAX32" "corei7-64_lsb_NUC" "corei7-64_lsb_MMAX64" "corei7-64_lsb_CherryHill") EXECUTION_TYPE="AUTO" create_test_run "${1}" "core-image-lsb-sdk_ANYBSP"
@@ -226,7 +233,9 @@ usage(){ echo " -p PROJECT VERSION {2.2 2.3 2.4} Version of the project." echo " -m PROJECT MILESTONE {M1 M2 M3 M4} - Milestone of the project." + Milestone of the project. + if is point release set milestone with .# + .1 .2 .3" echo " -r RELEASE COMMIT {XXXXXX} SCM Revision of the project, commit of branch tested." echo " -c RELEAE CANDIDATE {rc1 rc2 rcX}
@@ -236,6 +245,7 @@ usage(){ exit } + if [[ ( $# == "--help") || $# == "-h" || $# -eq 0 ]] ; then usage exit 0
testopia_update.py +28 -16
66 lines not on this page · raw message
Signature · 1 line
2.11.0