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

test: adjust os name variable in test cases #7877

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

mcattamoredhat
Copy link
Collaborator

We have seen in our downstream CI several failed tests due to inconsistency of os name (or ansible os name) variable across distros. Thus, playbook tasks such as find /var /mnt mount points failed.

This PR configures mentioned variable value to rhel-edge only when test are perfomed by RHEL-9.5, centos-stream-9. In addition edge-commit will also have rhel-edge variable value across all distros under test.

@mcattamoredhat mcattamoredhat added the WIP Working in progress label Jun 14, 2024
;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
esac

if [[ "${ID}-${VERSION_ID}" == "rhel-9.5" ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to add a rhel 9.5 switch case and then set os_name like what you did in other cases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks!

@mcattamoredhat mcattamoredhat marked this pull request as ready for review June 17, 2024 08:07
yih-redhat
yih-redhat previously approved these changes Jun 17, 2024
OSTREE_REF="rhel/9/${ARCH}/edge"
SYSROOT_RO="true"
ANSIBLE_OS_NAME="rhel-edge"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on rhel9.3 and rhel9.4 , the os_name should be redhat?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

others looks good to me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks!

@mcattamoredhat mcattamoredhat removed the WIP Working in progress label Jun 17, 2024
@yih-redhat yih-redhat merged commit 4007061 into virt-s1:main Jun 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants