Skip to content

Commit 41bafce

Browse files
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.
1 parent a2d59cc commit 41bafce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

metallb/run_e2e.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
metallb_dir="$(dirname $(readlink -f $0))"
44
source ${metallb_dir}/metallb_common.sh
55

6+
TESTS_REPORTS_PATH="${TESTS_REPORTS_PATH:-/logs/artifacts/}"
7+
68
export METALLB_REPO=${METALLB_REPO:-https://github.com/metallb/metallb.git}
79
[[ -d /usr/local/go ]] && export PATH=${PATH}:/usr/local/go/bin
810

@@ -17,6 +19,8 @@ sudo firewall-cmd --zone=libvirt --add-port=179/tcp
1719
sudo firewall-cmd --zone=libvirt --permanent --add-port=180/tcp
1820
sudo firewall-cmd --zone=libvirt --add-port=180/tcp
1921

22+
mkdir -p "${TESTS_REPORTS_PATH}"
23+
2024
# need to skip L2 metrics test because the pod that's running the tests is not in the
2125
# same subnet of the cluster nodes, so the arp request that's done in the test won't work.
2226
SKIP="\"L2 metrics\""
@@ -42,4 +46,4 @@ export RUN_FRR_CONTAINER_ON_HOST_NETWORK=true
4246
inv e2etest --kubeconfig=$(readlink -f ../../ocp/ostest/auth/kubeconfig) \
4347
--service-pod-port=8080 --system-namespaces="metallb-system" --skip-docker \
4448
--ipv4-service-range=192.168.10.0/24 --ipv6-service-range=fc00:f853:0ccd:e799::/124 \
45-
--skip="${SKIP}"
49+
--skip="${SKIP}" -e "${TESTS_REPORTS_PATH}"

0 commit comments

Comments
 (0)