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: Improve Elvish tests #1422

Merged
merged 2 commits into from
Jan 9, 2023
Merged

test: Improve Elvish tests #1422

merged 2 commits into from
Jan 9, 2023

Conversation

hyperupcall
Copy link
Contributor

@hyperupcall hyperupcall commented Jan 6, 2023

Summary

Old versions of Elvish cause spectacular failures

image

My patches fix that:

image

The module handling was also improved. Rather than copying the adsf.elv file and munging with user config files (which was already broken in cases where $XDG_CONFIG_HOME was not set to $HOME/.config), it uses the files in place by using relative imports. Additionally, XDG_CONFIG_HOME and XDG_DATA_HOME, etc. were set to empty so user config files are never parsed (it seems the -norc flag of Elvish is limited), improving test isolation.

@hyperupcall hyperupcall requested a review from a team as a code owner January 6, 2023 08:11
@hyperupcall hyperupcall force-pushed the fix-tests branch 4 times, most recently from 85eab88 to bd89e8b Compare January 6, 2023 08:22
@hyperupcall hyperupcall changed the title test: Do not run Elvish test without min version test: Improve Elvish tests Jan 6, 2023
Copy link
Contributor

@jthegedus jthegedus left a comment

Choose a reason for hiding this comment

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

This looks great! Using XDG is a good change, though if/when we implement our own usage of XDG this may need to change.

@jthegedus jthegedus merged commit d6a4cbd into asdf-vm:master Jan 9, 2023
@hyperupcall
Copy link
Contributor Author

Good point - likely will

Related to #1351

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.

2 participants