Skip to content

Commit

Permalink
Add support for running tests on RHEL10 hosts by Testing Farm
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Jan 8, 2025
1 parent 8522a73 commit eb4518c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
description: ''
required: true
os_test:
description: 'c9s/c10s/fedora/rhel8/rhel9/rhel9-unsubscribed'
description: 'c9s/c10s/fedora/rhel8/rhel9/rhel9-unsubscribed/rhel10/rhel10-unsubscribed'
required: true
test_case:
description: 'container/openshift-4'
Expand Down
16 changes: 14 additions & 2 deletions export_variables.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

public_ranch="c8s c9s c10s fedora"
private_ranch="rhel8 rhel9 rhel9-unsubscribed"
private_ranch="rhel8 rhel9 rhel9-unsubscribed rhel10 rhel10-unsubscribed"
all_os="$public_ranch $private_ranch"

os_test="$1" # options: c9s, c10s, fedora, rhel8, rhel9, rhel9-unsubscribed
os_test="$1" # options: c9s, c10s, fedora, rhel8, rhel9, rhel9-unsubscribed, rhel10, rhel10-unsubscribed
test_case="$2" # options: container, openshift-4, openshift-pytest
user_context="$3" # User can specify its own user-defined context, like 'Testing Farm - pytest - RHEL8'
if [ -z "$os_test" ] || ! echo "$all_os" | grep -q "$os_test" ; then
Expand Down Expand Up @@ -101,6 +101,18 @@ case "$os_test" in
context="$context_prefix RHEL9 - Unsubscribed host"
compose="RHEL-9.4.0-Nightly"
;;
"rhel10")
tmt_plan="rhel10$tmt_plan_suffix"
context="$context_prefix RHEL10$context_suffix"
compose="RHEL-10-Nightly"
;;
"rhel10-unsubscribed")
os_test="rhel10"
dockerfile="Dockerfile.$os_test"
tmt_plan="rhel10-unsubscribed-docker"
context="$context_prefix RHEL10 - Unsubscribed host"
compose="RHEL-10-Nightly"
;;
""|*)
echo "::error::os_test '$os_test' is not valid"
exit 5
Expand Down

0 comments on commit eb4518c

Please sign in to comment.