blob: b50df73ef994808c7cb75fad46ff415cd785c64d [file] [log] [blame]
Alexa0053b92022-10-14 16:38:28 -05001#!/bin/bash
2tenv=mos
3. /opt/si-tests/.sivenv/bin/activate
4cd $MY_PROJFOLDER/tmp
Alexc85212b2022-11-08 12:27:01 -06005. $MY_PROJFOLDER/envs/mccrc
6. $MY_PROJFOLDER/envs/target-${tenv}
Alexa0053b92022-10-14 16:38:28 -05007pytest /opt/si-tests/si_tests/tests/deployment/test_k8s_conformance.py
8unset TARGET_CLUSTER
9unset TARGET_NAMESPACE
10deactivate
11# report
12if [ -d $MY_PROJFOLDER/reports/${tenv}-conformance ]; then
13 echo "# Generating repors"
14 yes | rm $MY_PROJFOLDER/reports/${tenv}-conformance/*
15else
16 mkdir $MY_PROJFOLDER/reports/${tenv}-conformance
17fi
18cp ./artifacts/*.xml $MY_PROJFOLDER/reports/${tenv}-conformance/
19cd $MY_PROJFOLDER/reports/
20tparser -f r_xml --omit-status SKIP --force-single -d -r $MY_CLIENTSHORTNAME-${tenv}-conformance-latest.html $MY_PROJFOLDER/reports/${tenv}-conformance/
21cd $MY_PROJFOLDER