Skip to content

Commit 6d771f1

Browse files
agullonopenshift-cherrypick-robot
authored andcommitted
Update error messages and exit status
1 parent e22ba1f commit 6d771f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/bin/scenario.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,19 +399,19 @@ 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 - VM won't be created"
403-
record_junit "${vm_name}" "vm_build_commit_not_fount" "FAILED"
404-
exit 1
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"
404+
exit 0
405405
fi
406406
}
407407

408408
# Exit the script if the image is not found in the mirror registry.
409409
exit_if_image_not_found() {
410410
local -r image="${1}"
411411
if ! does_image_exist "${image}"; then
412-
echo "Image '${image}' not found in mirror registry - VM won't be created"
413-
record_junit "${vm_name}" "vm_build_image_not_fount" "FAILED"
414-
exit 1
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"
414+
exit 0
415415
fi
416416
}
417417

0 commit comments

Comments
 (0)