Skip to content

spack.relocate: add unit test#15610

Merged
alalazo merged 5 commits intospack:developfrom
alalazo:maintainers/relocate_unit_tests
Mar 24, 2020
Merged

spack.relocate: add unit test#15610
alalazo merged 5 commits intospack:developfrom
alalazo:maintainers/relocate_unit_tests

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Mar 20, 2020

This PR is a minor refactoring of a couple of functions in spack.relocate to be more in line with current practices in other parts Spack (see single commit descriptions for details). It also adds a unit test for the function searching for patchelf.

alalazo added 5 commits March 21, 2020 16:42
This aims at consistency in naming with both
the standard library (ValueError, AttributeError,
etc.) and other errors in 'spack.error'.

Improved existing docstrings
The search function that searches for patchelf has been
refactored to remove deply nested conditionals.

Extended docstring.
@alalazo alalazo force-pushed the maintainers/relocate_unit_tests branch from ded9e53 to 718e127 Compare March 21, 2020 15:43
@alalazo alalazo marked this pull request as ready for review March 21, 2020 20:10
@alalazo alalazo requested a review from gartung March 21, 2020 20:10
@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Mar 21, 2020

@gartung Can you have a look at this PR? I'll probably work on adding more unit tests like this one once this is reviewed and merged (rather than adding more code here, which I guess will make the PR more difficult to review).

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Mar 24, 2020

Thanks @gartung !

@alalazo alalazo merged commit 1b4de78 into spack:develop Mar 24, 2020
@alalazo alalazo deleted the maintainers/relocate_unit_tests branch March 24, 2020 08:03
@alalazo alalazo mentioned this pull request May 5, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants