Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
eabdullin1 authored and yuravk committed Sep 24, 2024
1 parent bd65398 commit ca8a1bd
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
Empty file added .github/workflows/temp.yaml
Empty file.
45 changes: 44 additions & 1 deletion tests/legacy/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,39 @@ elif [[ "$centos_ver" -eq 9 ]] ; then
key_ver="201"
fi

minor_ver=$(t_GetMinorVer)
os_id=$(source /etc/os-release; echo $ID)
skip_z_tests=0
skip_r_tests=0

case $os_id in
almalinux)
# AlmaLinux variables
vendor="almalinux"
os_name="AlmaLinux"
grub_sb_token='AlmaLinux OS Foundation'
kernel_sb_token=$grub_sb_token
key_template="AlmaLinux %s signing key"
kmod_sb_key="63:88:9E:6C:FB:6E:4F:73:8A:47:63:3F:8D:66:56:13"
firefox_start_page="almalinux.org"
minor_ver=$(t_GetMinorVer)
skip_z_tests=1
export minor_ver
;;
centos)
# CentOS variables
vendor="centos"
os_name="CentOS"
grub_sb_token='CentOS Secure Boot Signing 202'
kernel_sb_token="CentOS Secure Boot Signing 201"
key_template="CentOS \(Linux \)\?%s signing key"
firefox_start_page="www.centos.org"
;;
*)
# Exit in default case
t_Log "Unknown OS ID: $os_id"
exit 1
;;
esac

export -f t_Log
export -f t_CheckExitStatus
Expand Down Expand Up @@ -277,6 +309,17 @@ export centos_ver
export centos_stream
export minor_ver
export arch
export vendor
export os_name
export grub_sb_token
export kmod_sb_key
export firefox_start_page
export key_template
export kernel_sb_token
export skip_z_tests
export skip_r_tests

export YUMDEBUG=1

if [ -z "$CONTAINERTEST" ]; then
export CONTAINERTEST=0
Expand Down

0 comments on commit ca8a1bd

Please sign in to comment.