-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix tests/user-envs-migration.sh
#8079
base: master
Are you sure you want to change the base?
Fix tests/user-envs-migration.sh
#8079
Conversation
I rather know exactly what check failed than get a nice error message. I'll go to the line if there is a failure, and then see the comment above.
It was changed from `XDG_DATA_HOME` to `XDG_STATE_HOME` during review, but it was forgetten to update this test.
The version was based on when this PR was first created; by the time it was merged the test was dead code as we no longer tested a Nix version that old.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
Things like a29abc9 are a fairly easy and frequent source of bugs, I wonder whether we could do something about them
# The nix profile should point to the new location | ||
[[ -L ~/.nix-profile ]] | ||
[[ $(readlink ~/.nix-profile) == ~/.local/state/nix/profiles/profile ]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, that section is actually completely broken, I removed this migration from the original PR after some review suggested it 🤔 . So ~/.nix-profile
should still point to the original location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha! Sorry, I should have marked this as draft as I opened it before tests. So I guess we can instead test that the migration doesn't happen until later OK.
Will rework.
(And I realized how I can run the tests incrementally, just define the env var. Whew. That helps.)
Motivation
See each commit for details.
Context
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 👍 to pull requests you find important.