mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-12 00:26:24 -04:00
Don't use "HEADLESS" environment variable for running tests
It is a bit generic, it seems that users sometimes set it for other reasons, and then they are confused why they don't see anything. Use a more specific name instead.
This commit is contained in:
parent
e3ea666352
commit
9334bf0333
|
|
@ -61,5 +61,5 @@ func (gui *Gui) handleTestMode() {
|
|||
}
|
||||
|
||||
func Headless() bool {
|
||||
return os.Getenv("HEADLESS") != ""
|
||||
return os.Getenv("LAZYGIT_HEADLESS") != ""
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ func TestIntegration(t *testing.T) {
|
|||
func runCmdHeadless(cmd *exec.Cmd) (int, error) {
|
||||
cmd.Env = append(
|
||||
cmd.Env,
|
||||
"HEADLESS=true",
|
||||
"LAZYGIT_HEADLESS=true",
|
||||
"TERM=xterm",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue