Skip to content

Commit

Permalink
tests/commonlib: consider centos ID as SCOS
Browse files Browse the repository at this point in the history
The `ID` will change to `centos` as part of
openshift/os#1445.
  • Loading branch information
jlebon committed Feb 21, 2024
1 parent 1468cdc commit 46fbcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kola/data/commonlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ is_rhcos9() {
# scos
is_scos() {
source /etc/os-release
[ "${ID}" == "scos" ] && [ "${VARIANT_ID}" == "coreos" ]
{ [ "${ID}" == "scos" ] || [ "${ID}" == "centos" ]; } && [ "${VARIANT_ID}" == "coreos" ]
}

IFS=" " read -r -a cmdline <<< "$(</proc/cmdline)"
Expand Down

0 comments on commit 46fbcd6

Please sign in to comment.