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

Improve how Test handles #@exec comments in .tst files (by executing these earlier to allow #@if comments to depend on them) #5049

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

zickgraf
Copy link
Contributor

If one wants to use code from packages in #@if, one can now load those packages via #@exec.

The first commit fixes some typos.

Text for release notes

see title

endif -> fi
Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Seem plausible to me. Clarifying the context in which EXPR is evaluated is a very good idea in any case!

Would be good to know what @ChrisJefferson thinks.

lib/test.gi Outdated Show resolved Hide resolved
@fingolfin fingolfin added the release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes label Sep 19, 2022
@fingolfin fingolfin changed the title Execute #@exec earlier to allow #@if to depend on it Improve how Test handles #@exec comments in .tst files (by executing these earlier to allow #@if comments to depend on them) Sep 19, 2022
@fingolfin fingolfin added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: tests issues or PRs related to tests labels Sep 19, 2022
@ChrisJefferson
Copy link
Contributor

This looks good to me. It would be nice to have a test (it's always nice to have a test), but I've checked it works so I'd accept without.

@fingolfin
Copy link
Member

@zickgraf could you please squash the final commit into its parent (so two commits remain) ? I'd normally do this myself, but it seems you turned off the "Allow edits and access to secrets by maintainers" checkbox, so I can't.

(Might also wrap the new documentation lines to < 80 characters)

If one wants to use code from packages in #@if, one can now load those
packages via #@exec.
@fingolfin
Copy link
Member

Thanks!

@fingolfin fingolfin merged commit db0d95a into gap-system:master Sep 21, 2022
@zickgraf zickgraf deleted the exec_if branch September 26, 2022 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: tests issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants