-
Notifications
You must be signed in to change notification settings - Fork 113
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
Ability to change siteconfig #234
Comments
For the non-regression tests, I suggest to add them to the testsuite/modules.00-init/120-siteconfig.exp file.
Just after that point, redo the same test multiple times, but each time with a different value set for MODULES_SITECONFIG:
Also do these 4 tests, on the other branch of the |
@xdelaruelle I have created some tests, but a few issues remain.
any thoughts on what I did to cause this?
|
To go through the first branch, a specific setup should be done by installing the
Pager tests look at Modules initialization debug information and currently expect there the siteconfig file to be the one setup at I suggest you not to take that part into account. Once you will push your specific tests in |
Let's follow the same approach than used for It makes me think that |
Add the ability to define a site-specific configuration file with an environment variable: MODULES_SITECONFIG. When set, the script file pointed by the variable is sourced (if readable) after the site-specific configuration file initially defined in modulecmd.tcl. Fixes envmodules#234.
We would like the ability to change the siteconfig from the installation path (which in many cases modules may be installed by root and unable for other users to add user recipes to the siteconfig).
I would propose control using an variable named $MODULES_SITECONFIG that would default to the existing value (@etcdir@/siteconfig.tcl) if the env-variable was not set.
The change is fairly trivial - but I am uncertain how to write the tests for this.
The text was updated successfully, but these errors were encountered: