Skip to content

Commit d7cb5b5

Browse files
Merge pull request #5757 from ggiguash/reenable-fips-tests-420
[release-4.20] USHIFT-6152: Renable FIPS scenario for last release
2 parents b452d2b + 5c88863 commit d7cb5b5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/scenarios-bootc/releases/el96-lrel@fips.sh.disabled renamed to test/scenarios-bootc/releases/el96-lrel@fips.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,32 @@ check_platform() {
1212
}
1313

1414
scenario_create_vms() {
15-
if ! does_commit_exist "${start_image}"; then
15+
check_platform
16+
if ! does_image_exist "${start_image}"; then
1617
echo "Image '${start_image}' not found - skipping test"
1718
return 0
1819
fi
1920

20-
check_platform
21-
2221
prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
2322
launch_vm --boot_blueprint rhel96-bootc --fips
2423
}
2524

2625
scenario_remove_vms() {
2726
check_platform
27+
if ! does_image_exist "${start_image}"; then
28+
echo "Image '${start_image}' not found - skipping test"
29+
return 0
30+
fi
2831

2932
remove_vm host1
3033
}
3134

3235
scenario_run_tests() {
3336
check_platform
37+
if ! does_image_exist "${start_image}"; then
38+
echo "Image '${start_image}' not found - skipping test"
39+
return 0
40+
fi
3441

3542
run_tests host1 suites/fips/
3643
}

0 commit comments

Comments
 (0)