ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/src
Martin von Zweigbergk 891641670c tests: don't propagate environment variables to tests
We don't want variables from the developer's environment to affect
tests. You can make tests fail if you set `XDG_CONFIG_HOME` such that
`$XDG_CONFIG_HOME/jj/config.toml` exists and has e.g. an email
set. The fix is to not propagate any environment variables. Thanks for
@arxanas for pointing this out in #104.

We still need to set `$HOME` to prevent configs from being read from
the process owner's home directory (because that's what
`dirs::config_dir()` seems to fall back to if `$HOME` is not set). By
the way, I suspect we'd still not immune to configs from the
developers home directory on Windows, because that doesn't seem to be
controlled by `$HOME`.
2022-03-07 20:23:55 -08:00
..
commands.rs cli: on jj init --git-repo=., use relative path to .git/ 2022-03-05 09:37:48 -08:00
diff_edit.rs working_copy: take a tree object instead of ID in TreeState::check_out() 2022-02-13 12:12:08 -08:00
formatter.rs cli: indicate each workspace's checkout in log (#13) 2022-02-02 21:36:14 -08:00
graphlog.rs cleanup: let Clippy fix a bunch of warnings 2021-06-14 00:27:31 -07:00
lib.rs styler: rename Styler to more standard Formatter 2021-06-05 08:38:28 -07:00
main.rs cli: exit with code 1 on invalid config 2022-02-19 23:45:41 -08:00
template.pest
template_parser.rs cli: indicate each workspace's checkout in log (#13) 2022-02-02 21:36:14 -08:00
templater.rs cli: indicate each workspace's checkout in log (#13) 2022-02-02 21:36:14 -08:00
testutils.rs tests: don't propagate environment variables to tests 2022-03-07 20:23:55 -08:00
ui.rs cli: clarify error message when jj untrack argument is not ignored 2022-03-02 22:43:09 -08:00