Skip to content

Commit 2bd6236

Browse files
Merge pull request #5945 from openshift-cherrypick-robot/cherry-pick-5941-to-release-4.21
[release-4.21] USHIFT-6411: Scenarios must report junit status when image/commit to start the VM not found
2 parents 31aff2d + 6d771f1 commit 2bd6236

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/bin/scenario.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ does_image_exist() {
399399
exit_if_commit_not_found() {
400400
local -r commit="${1}"
401401
if ! does_commit_exist "${commit}"; then
402-
echo "Commit '${commit}' not found in ostree repo - skipping test"
402+
echo "Commit '${commit}' not found in ostree repo - VM can't be created"
403+
record_junit "${vm_name}" "build_vm_commit_not_found" "SKIPPED"
403404
exit 0
404405
fi
405406
}
@@ -408,7 +409,8 @@ exit_if_commit_not_found() {
408409
exit_if_image_not_found() {
409410
local -r image="${1}"
410411
if ! does_image_exist "${image}"; then
411-
echo "Image '${image}' not found in mirror registry - skipping test"
412+
echo "Image '${image}' not found in mirror registry - VM can't be created"
413+
record_junit "${vm_name}" "build_vm_image_not_found" "SKIPPED"
412414
exit 0
413415
fi
414416
}

0 commit comments

Comments
 (0)