Files
krkn/CI/tests/test_container.sh
Sandro Bonazzola 51a2fbd77d automation: add coverage report
Add coverage report for performed tests.

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
2022-09-13 07:35:58 +02:00

22 lines
533 B
Bash
Executable File

set -xeEo pipefail
source CI/tests/common.sh
trap error ERR
trap finish EXIT
pod_file="CI/scenarios/hello_pod.yaml"
function functional_test_container_crash {
export scenario_type="container_scenarios"
export scenario_file="- CI/scenarios/container_scenario.yml"
export post_config=""
envsubst < CI/config/common_test_config.yaml > CI/config/container_config.yaml
python3 -m coverage run -a run_kraken.py -c CI/config/container_config.yaml
echo "Container scenario test: Success"
}
functional_test_container_crash