Alex | a0053b9 | 2022-10-14 16:38:28 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | tenv=mcc |
| 3 | . /opt/si-tests/.sivenv/bin/activate |
| 4 | cd $MY_PROJFOLDER/tmp |
| 5 | . $MY_PROJFOLDER/${tenv}rc |
| 6 | . $MY_PROJFOLDER/target-${tenv} |
| 7 | pytest /opt/si-tests/si_tests/tests/deployment/test_k8s_conformance.py |
| 8 | unset TARGET_CLUSTER |
| 9 | unset TARGET_NAMESPACE |
| 10 | deactivate |
| 11 | # report |
| 12 | if [ -d $MY_PROJFOLDER/reports/${tenv}-conformance ]; then |
| 13 | echo "# Generating repors" |
| 14 | yes | rm $MY_PROJFOLDER/reports/${tenv}-conformance/* |
| 15 | else |
| 16 | mkdir $MY_PROJFOLDER/reports/${tenv}-conformance |
| 17 | fi |
| 18 | cp ./artifacts/*.xml $MY_PROJFOLDER/reports/${tenv}-conformance/ |
| 19 | cd $MY_PROJFOLDER/reports/ |
| 20 | tparser -f r_xml --omit-status SKIP --force-single -d -r $MY_CLIENTSHORTNAME-${tenv}-conformance-latest.html $MY_PROJFOLDER/reports/${tenv}-conformance/ |
| 21 | cd $MY_PROJFOLDER |