From b685df03750be0ee1b9c55632dceedb7dbf4961a Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Wed, 6 Nov 2024 15:05:22 +0000 Subject: Add new k6 test profile for running edurance tests - assign a profile name to the existing k6 tests (kpi) - add control which profile is run using k6 config file - both test profiles can run in parallel Issue-ID: CPS-2464 Change-Id: I9fea13f12e2da46bd55b4315c68209843c1abe06 Signed-off-by: halil.cakal --- k6-tests/teardown.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'k6-tests/teardown.sh') diff --git a/k6-tests/teardown.sh b/k6-tests/teardown.sh index 7693dc03a4..c3233919dc 100755 --- a/k6-tests/teardown.sh +++ b/k6-tests/teardown.sh @@ -18,11 +18,13 @@ echo '================================== docker info ==========================' docker ps -a -echo 'Stopping, Removing containers and volumes...' -docker_compose_cmd="docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub down --volumes" +testProfile=$1 +docker_compose_shutdown_cmd="docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub --project-name $testProfile down --volumes" + # Set an environment variable CLEAN_DOCKER_IMAGES=1 to also remove docker images when done (used on jenkins job) +echo "Stopping, Removing containers and volumes for $testProfile tests..." if [ "${CLEAN_DOCKER_IMAGES:-0}" -eq 1 ]; then - $docker_compose_cmd --rmi all + $docker_compose_shutdown_cmd --rmi all else - $docker_compose_cmd + $docker_compose_shutdown_cmd fi -- cgit 1.2.3-korg