Skip to content

Ensure that hadd python tests are run only if pytest is available #19181

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

LukasBreitwieser
Copy link
Contributor

Change CMake function from ROOTTEST_ADD_TEST to ROOT_ADD_PYUNITTEST

Change CMake function from ROOTTEST_ADD_TEST to ROOT_ADD_PYUNITTEST
Copy link

Test Results

    20 files      20 suites   3d 17h 20m 5s ⏱️
 3 038 tests  3 038 ✅ 0 💤 0 ❌
59 166 runs  59 166 ✅ 0 💤 0 ❌

Results for commit 3f009ad.

Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@guitargeek guitargeek merged commit be4103c into root-project:master Jun 27, 2025
25 checks passed
@linev
Copy link
Member

linev commented Jul 1, 2025

Hi,

There are one problem using ROOT_ADD_PYUNITTEST test.
If python script runs in source directory - it also creates __pycache__ subdirectory deep in root sources.
To avoid this - one should copy first python script to build directory.
Therefore one need to modify ROOT_ADD_PYUNITTEST macro.

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.

4 participants