From fad801d0fb6ccb1a1cd90cb9c6ad0de4f9bcb150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 18 Jul 2023 20:21:22 +0200 Subject: [PATCH] ci: k8s: Adapt "source ..." to the new location of gha-run.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a follow up of 2ee2cd307b001f8eab4d8192271cf0e3fec4c595, which changed the location of gha-run.sh Fixes: #7373 Signed-off-by: Fabiano FidĂȘncio --- tests/integration/kubernetes/gha-run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index a343d801c..b38288efc 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -8,8 +8,8 @@ set -o errexit set -o nounset set -o pipefail -integration_dir="$(dirname "$(readlink -f "$0")")" -repo_root_dir="$(cd "${integration_dir}/../../" && pwd)" +kubernetes_dir="$(dirname "$(readlink -f "$0")")" +repo_root_dir="$(cd "${kubernetes_dir}/../../../" && pwd)" tools_dir="${repo_root_dir}/tools" function _print_cluster_name() { @@ -110,13 +110,13 @@ function run_tests() { fi # Create a new namespace for the tests and switch to it - kubectl apply -f ${integration_dir}/kubernetes/runtimeclass_workloads/tests-namespace.yaml + kubectl apply -f ${kubernetes_dir}/runtimeclass_workloads/tests-namespace.yaml kubectl config set-context --current --namespace=kata-containers-k8s-tests echo "Gather information about the nodes and pods just before starting the tests" get_nodes_and_pods_info - pushd "${integration_dir}/kubernetes" + pushd "${kubernetes_dir}" bash setup.sh bash run_kubernetes_tests.sh popd