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

autotailor-unit-tests unit test runs when pytest is not installed #2153

Closed
mildas opened this issue Aug 19, 2024 · 0 comments · Fixed by #2155
Closed

autotailor-unit-tests unit test runs when pytest is not installed #2153

mildas opened this issue Aug 19, 2024 · 0 comments · Fixed by #2155

Comments

@mildas
Copy link
Contributor

mildas commented Aug 19, 2024

Description of Problem:

During ctest, autotailor test runs even when pytest is not installed on a system. As it is not openscap requirement, it should be optional and run only when pytest is installed.

OpenSCAP Version:

1.4.0

Operating System & Version:

RHEL 10

Steps to Reproduce:

  1. ctest --force-new-ctest-process --output-on-failure

Actual Results:

276/277 Test #276: autotailor-unit-tests ..............................................................***Failed    0.01 sec
/usr/bin/python3: No module named pytest

Expected Results:

276/277 Test #276: autotailor-unit-tests ..............................................................***Skipped    0.01 sec

Additional Information / Debugging Steps:

if(PY_PYTEST) conditon for https://github.com/OpenSCAP/openscap/blob/main/tests/utils/CMakeLists.txt should ensure that

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 a pull request may close this issue.

1 participant