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

test: add sources directory cleaning test #5474

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Mar 10, 2023

related #5448

@rjbou rjbou added PR: WIP Not for merge at this stage AREA:TEST labels Mar 10, 2023
@rjbou rjbou marked this pull request as draft March 10, 2023 10:45
@rjbou rjbou marked this pull request as ready for review March 13, 2023 12:39
@rjbou rjbou force-pushed the clean-source branch 2 times, most recently from 9213fb6 to 672d5d7 Compare April 9, 2024 16:57
@rjbou rjbou added PR: WAITING FOR REVIEW and removed PR: WIP Not for merge at this stage labels Apr 9, 2024
@rjbou rjbou requested review from kit-ty-kate and dra27 May 3, 2024 08:50
Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

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

Apparently for me it's much easier to suggest to other people to add comments to their tests, than it is to remember to put comments in my tests in the first place.

I think we should definitely tag the cases which are errors (I think at least the remaining waste.1 after opam install is an error??) and we probably can't have too many ls calls in this test!

-> installed waste.1
Done.
### ls OPAM/clean/.opam-switch/sources/
waste.1
Copy link
Member

Choose a reason for hiding this comment

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

This one's part of the original bug, right? After opam install, there's no need for it to be there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not a bug, it's a feature xD But yes, it definitively show the current behaviour to store all sources files in sources

-> removed waste.1
-> installed waste.1
Done.
### ls OPAM/clean/.opam-switch/sources
Copy link
Member

Choose a reason for hiding this comment

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

Correct the difference here is that opam install waste has left the sources directory populated, but opam reinstall waste has removed it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

tests/reftests/clean.test Show resolved Hide resolved
tests/reftests/clean.test Show resolved Hide resolved
@kit-ty-kate kit-ty-kate removed their request for review May 9, 2024 13:24
@rjbou rjbou added this to the 2.3 milestone Jun 27, 2024
@rjbou rjbou marked this pull request as draft July 10, 2024 13:55
@rjbou rjbou requested review from kit-ty-kate and dra27 July 24, 2024 17:58
@rjbou rjbou marked this pull request as ready for review July 24, 2024 17:59
@kit-ty-kate
Copy link
Member

Thanks!

@kit-ty-kate kit-ty-kate merged commit 3853bfc into ocaml:master Jul 24, 2024
29 checks passed
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.

3 participants