Skip to content

Commit 272918a

Browse files
Adapt openqa-label-known-issues-and-investigate-hook
1 parent b9b3a89 commit 272918a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

openqa-label-known-issues-and-investigate-hook

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ hook() {
4444
result="$(echo "$job_data" | runjq -r '.job.result')" || return $?
4545
[[ "$state" != "done" ]] && return
4646
if [[ "$result" != passed ]]; then
47-
bats_package="$(echo "$job_data" | runjq -r '.job.settings.BATS_PACKAGE')"
48-
if [[ $bats_package != "null" ]]; then
47+
testsuite="$(echo "$job_data" | runjq -r '.job.settings.TEST')"
48+
# Remove optional "container_host_" prefix
49+
testsuite="${testsuite#container_host_}"
50+
# Remove optional "_crun" suffix
51+
testsuite="${testsuite%_crun}"
52+
if [[ $testsuite =~ ^(aardvark|buildah|conmon|docker|netavark|podman|runc|skopeo)_(e2e|testsuite)$ ]]; then
4953
openqa-bats-review "$url" && return
5054
fi
5155
label "$url" | investigate-and-bisect

0 commit comments

Comments
 (0)