Skip to content

Commit 15a3adc

Browse files
committed
Use exit_if_image_not_found in the scenario
1 parent 362867d commit 15a3adc

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

test/scenarios-bootc/periodics/el96-crel@optional-sigstore.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,21 @@ IMAGE_SIGSTORE_ENABLED=true
1111
start_image=rhel96-bootc-crel-optionals
1212

1313
scenario_create_vms() {
14-
if ! does_image_exist "${start_image}"; then
15-
echo "Image '${start_image}' not found - skipping test"
16-
return 0
17-
fi
14+
exit_if_image_not_found "${start_image}"
15+
1816
prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
1917
launch_vm --boot_blueprint rhel96-bootc
2018
}
2119

2220
scenario_remove_vms() {
23-
if ! does_image_exist "${start_image}"; then
24-
echo "Image '${start_image}' not found - skipping test"
25-
return 0
26-
fi
21+
exit_if_image_not_found "${start_image}"
22+
2723
remove_vm host1
2824
}
2925

3026
scenario_run_tests() {
31-
if ! does_image_exist "${start_image}"; then
32-
echo "Image '${start_image}' not found - skipping test"
33-
return 0
34-
fi
27+
exit_if_image_not_found "${start_image}"
28+
3529
# Run a minimal test for this scenario as its main functionality is
3630
# to verify container image signature check is enabled
3731
run_tests host1 \

0 commit comments

Comments
 (0)