mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
Add coverage report for performed tests. Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
22 lines
533 B
Bash
Executable File
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
|