Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support PyTest test case #24

Merged
merged 3 commits into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion export_variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ private_ranch="rhel7 rhel8 rhel9 rhel9-unsubscribed"
all_os="$public_ranch $private_ranch"

os_test="$1" # options: centos7, c8s, c9s, fedora, rhel7, rhel8, rhel9, rhel9-unsubscribed
test_case="$2" # options: container, openshift-4
test_case="$2" # options: container, openshift-4, 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
echo "::error::os_test '$os_test' is not valid"
Expand All @@ -26,6 +26,11 @@ case "$test_case" in
tmt_plan_suffix="-openshift-4"
test_name="test-openshift-4"
;;
"test-openshift-pytest")
context_suffix="PyTest - OpenShift 4"
tmt_plan_suffix="-pytest"
test_name="test-openshift-pytest"
;;
""|*)
echo "::error::test_case '$test_case' is not valid"
exit 5
Expand Down