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

netcdf-{c,fortran}: run tests on run_tests, not run_after(install) #526

Merged

Conversation

AlexanderRichert-NOAA
Copy link
Collaborator

This PR fixes the netcdf-c and netcdf-fortran test run conditions by checking run_tests in addition to @run_after("install") (which is still needed in order to have the test output get logged). It nullifies the check() function to prevent duplicate tests. I have confirmed on my personal machine that the tests only run with 'spack install --test'. These changes can be reverted or made nicer once spack#49200 is resolved.

Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@climbfuji
Copy link
Collaborator

This fell through the cracks. Is this still relevant and ready to go?

@AlexanderRichert-NOAA AlexanderRichert-NOAA merged commit 5967889 into JCSDA:spack-stack-dev Mar 21, 2025
15 checks passed
@AlexanderRichert-NOAA
Copy link
Collaborator Author

Yep, thanks

@climbfuji climbfuji deleted the nc_test_fix branch March 21, 2025 16:47
@climbfuji
Copy link
Collaborator

We'll need a submodule pointer update in spack-stack for this

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.

None yet

2 participants