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

CTest Fixes #9962

Merged
merged 2 commits into from
Dec 13, 2022
Merged

CTest Fixes #9962

merged 2 commits into from
Dec 13, 2022

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented Dec 12, 2022

Description:

This PR fixes a couple of issues with the CTest test suite.

Rationale:

Review Hints:

  • Make sure to run the tests when you have not built rhel9.

@Mab879 Mab879 added the Infrastructure Our content build system label Dec 12, 2022
@Mab879 Mab879 added this to the 0.1.66 milestone Dec 12, 2022
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@codeclimate
Copy link

codeclimate bot commented Dec 12, 2022

Code Climate has analyzed commit 382dab0 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 48.8% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Dec 13, 2022
Copy link
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

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

I have checked in a RHEL 7.9 VM that with this PR the tests mentioned in #9948 stopped to be executed. I also checked on F37 that the tests srg-export-rhel9 and srg-diff-rhel9 aren't executed when rhel8 content is built.

@jan-cerny jan-cerny merged commit 3344127 into ComplianceAsCode:master Dec 13, 2022
@@ -160,7 +160,7 @@ if (PY_MYPY)
)
endif()

if (PY_OPENPYXL AND PY_PANDAS AND PYTHON3_EXECUTABLE)
if (PYTHON_VERSION_MAJOR GREATER 2 AND PY_OPENPYXL AND PY_PANDAS AND SRG_PRODUCT_RHEL9)
Copy link
Member

Choose a reason for hiding this comment

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

isn't it SSG_PRODUCT_RHEL9 instead of SRG...?

Copy link
Collaborator

Choose a reason for hiding this comment

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

great, thanks for finding this, it should be SSG_PRODUCT_RHEL9

@Mab879 PTAL

Copy link
Member Author

Choose a reason for hiding this comment

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

#9964 should fix that.

@Mab879 Mab879 deleted the fix_ctest_rhel7 branch December 13, 2022 16:42
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some RHEL9 specific tests run even when RHEL9 product is not built CTest fails on RHEL7
3 participants