From 4bcf472de6ccf12b9f17ea095d8257fd7d7c1d18 Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Wed, 16 Apr 2025 22:02:06 +0530 Subject: [PATCH] add option to skip tests in critest Signed-off-by: Akhil Mohan (cherry picked from commit 4ba3d82ca270937a428d4b6c006bd7e9f8261743) (cherry picked from commit 8e6c93b6b057230915b449349836bf198f8ebcfe) Signed-off-by: Derek McGowan --- script/critest.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/critest.sh b/script/critest.sh index 267d2082f..f212149e2 100755 --- a/script/critest.sh +++ b/script/critest.sh @@ -70,6 +70,11 @@ if [ ! -z "$CGROUP_DRIVER" ] && [ "$CGROUP_DRIVER" = "systemd" ];then EOF fi +GINKGO_SKIP_TEST=() +if [ ! -z "$SKIP_TEST" ]; then + GINKGO_SKIP_TEST+=("--ginkgo.skip" "$SKIP_TEST") +fi + ls /etc/cni/net.d /usr/local/bin/containerd \ @@ -85,4 +90,4 @@ do crictl --runtime-endpoint ${BDIR}/c.sock info && break || sleep 1 done -critest --report-dir "$report_dir" --runtime-endpoint=unix:///${BDIR}/c.sock --parallel=8 "${EXTRA_CRITEST_OPTIONS:-""}" +critest --report-dir "$report_dir" --runtime-endpoint=unix:///${BDIR}/c.sock --parallel=8 "${GINKGO_SKIP_TEST[@]}" "${EXTRA_CRITEST_OPTIONS:-""}"