File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -479,13 +479,13 @@ def restart_httpd() -> None:
479
479
the beginning of the test. This ensures consistency across distributions.
480
480
"""
481
481
482
- almalinux_9 = "almalinux-9 "
483
- assert almalinux_9 in get_supported_distros (), (
484
- f" { almalinux_9 } is not supported anymore. " f"Please adapt the code below."
485
- )
482
+ almalinux_prefix = "almalinux"
483
+ assert any (
484
+ distro for distro in get_supported_distros () if distro . startswith ( almalinux_prefix )
485
+ ), "We dropped support for almalinux, please adapt the code below."
486
486
487
487
# When executed locally and un-dockerized, DISTRO may not be set
488
- if os .environ .get ("DISTRO" ) == almalinux_9 :
488
+ if os .environ .get ("DISTRO" , "" ). startswith ( almalinux_prefix ) :
489
489
run (["httpd" , "-k" , "restart" ], sudo = True )
490
490
491
491
You can’t perform that action at this time.
0 commit comments