From 41bafcec7d86e47d620b366310cf7f94b5a98e3e Mon Sep 17 00:00:00 2001 From: Sabina Aledort Date: Wed, 8 Dec 2021 01:48:20 +0200 Subject: [PATCH] MetalLB E2E tests: Add logs path (#1326) Setting the logs path to /logs/artifacts/ as this is the openshift-ci artifacts location so the logs will be stored on every CI run. --- metallb/run_e2e.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/metallb/run_e2e.sh b/metallb/run_e2e.sh index c17637d82..bb37f297b 100755 --- a/metallb/run_e2e.sh +++ b/metallb/run_e2e.sh @@ -3,6 +3,8 @@ metallb_dir="$(dirname $(readlink -f $0))" source ${metallb_dir}/metallb_common.sh +TESTS_REPORTS_PATH="${TESTS_REPORTS_PATH:-/logs/artifacts/}" + export METALLB_REPO=${METALLB_REPO:-https://github.com/metallb/metallb.git} [[ -d /usr/local/go ]] && export PATH=${PATH}:/usr/local/go/bin @@ -17,6 +19,8 @@ sudo firewall-cmd --zone=libvirt --add-port=179/tcp sudo firewall-cmd --zone=libvirt --permanent --add-port=180/tcp sudo firewall-cmd --zone=libvirt --add-port=180/tcp +mkdir -p "${TESTS_REPORTS_PATH}" + # need to skip L2 metrics test because the pod that's running the tests is not in the # same subnet of the cluster nodes, so the arp request that's done in the test won't work. SKIP="\"L2 metrics\"" @@ -42,4 +46,4 @@ export RUN_FRR_CONTAINER_ON_HOST_NETWORK=true inv e2etest --kubeconfig=$(readlink -f ../../ocp/ostest/auth/kubeconfig) \ --service-pod-port=8080 --system-namespaces="metallb-system" --skip-docker \ --ipv4-service-range=192.168.10.0/24 --ipv6-service-range=fc00:f853:0ccd:e799::/124 \ - --skip="${SKIP}" + --skip="${SKIP}" -e "${TESTS_REPORTS_PATH}"