mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-06-20 01:19:23 +02:00
Don't use "HEADLESS" environment variable for running tests (#5064)
It is a bit generic, it seems that users sometimes set it for other reasons (see https://github.com/jesseduffield/lazygit/issues/5030#issuecomment-3541000735), and then they are confused why they don't see anything. Use a more specific name instead.
This commit is contained in:
@@ -61,5 +61,5 @@ func (gui *Gui) handleTestMode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Headless() bool {
|
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) {
|
func runCmdHeadless(cmd *exec.Cmd) (int, error) {
|
||||||
cmd.Env = append(
|
cmd.Env = append(
|
||||||
cmd.Env,
|
cmd.Env,
|
||||||
"HEADLESS=true",
|
"LAZYGIT_HEADLESS=true",
|
||||||
"TERM=xterm",
|
"TERM=xterm",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user