Do not read config from os.Environ when running tests

Fixes #8655
This commit is contained in:
Bjørn Erik Pedersen
2021-06-16 18:58:40 +02:00
parent d392893cd7
commit 31fb29fb3f
3 changed files with 11 additions and 2 deletions

View File

@@ -303,7 +303,6 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
WorkingDir: dir,
Filename: c.h.cfgFile,
AbsConfigDir: c.h.getConfigDir(dir),
Environ: os.Environ(),
Environment: environment,
},
cfgSetAndInit,