Skip to content

Commit

Permalink
MetalLB E2E tests: Add logs path (#1326)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sabinaaledort authored Dec 7, 2021
1 parent a2d59cc commit 41bafce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion metallb/run_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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\""
Expand All @@ -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}"

0 comments on commit 41bafce

Please sign in to comment.