tests: common: Ensure test_type is used as part of the cluster's name

By doing this we can make sure there won't be any clash on the cluster
name created for either the k8s or the kata-deploy tests.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio
2023-08-17 10:39:15 +02:00
parent 790bd3548d
commit 285e616b5e
3 changed files with 18 additions and 9 deletions

View File

@@ -84,13 +84,14 @@ function run_tests() {
function cleanup() {
platform="${1}"
test_type="${2:-k8s}"
ensure_yq
echo "Gather information about the nodes and pods before cleaning up the node"
get_nodes_and_pods_info
if [ "${platform}" = "aks" ]; then
delete_cluster
delete_cluster ${test_type}
return
fi