Skip to content

Commit 4bcf472

Browse files
akhilermdmcgowan
authored andcommitted
add option to skip tests in critest
Signed-off-by: Akhil Mohan <[email protected]> (cherry picked from commit 4ba3d82) (cherry picked from commit 8e6c93b) Signed-off-by: Derek McGowan <[email protected]>
1 parent ea7be04 commit 4bcf472

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

script/critest.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ if [ ! -z "$CGROUP_DRIVER" ] && [ "$CGROUP_DRIVER" = "systemd" ];then
7070
EOF
7171
fi
7272

73+
GINKGO_SKIP_TEST=()
74+
if [ ! -z "$SKIP_TEST" ]; then
75+
GINKGO_SKIP_TEST+=("--ginkgo.skip" "$SKIP_TEST")
76+
fi
77+
7378
ls /etc/cni/net.d
7479

7580
/usr/local/bin/containerd \
@@ -85,4 +90,4 @@ do
8590
crictl --runtime-endpoint ${BDIR}/c.sock info && break || sleep 1
8691
done
8792

88-
critest --report-dir "$report_dir" --runtime-endpoint=unix:///${BDIR}/c.sock --parallel=8 "${EXTRA_CRITEST_OPTIONS:-""}"
93+
critest --report-dir "$report_dir" --runtime-endpoint=unix:///${BDIR}/c.sock --parallel=8 "${GINKGO_SKIP_TEST[@]}" "${EXTRA_CRITEST_OPTIONS:-""}"

0 commit comments

Comments
 (0)