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:
Stefan Haller 2025-11-23 18:10:59 +01:00
parent e3ea666352
commit 9334bf0333
2 changed files with 2 additions and 2 deletions

View file

@ -61,5 +61,5 @@ func (gui *Gui) handleTestMode() {
}
func Headless() bool {
return os.Getenv("HEADLESS") != ""
return os.Getenv("LAZYGIT_HEADLESS") != ""
}

View file

@ -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",
)