Skip to content

Commit 28cd1c2

Browse files
authored
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 #5030 (comment)), and then they are confused why they don't see anything. Use a more specific name instead.
2 parents e3ea666 + 9334bf0 commit 28cd1c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/gui/test_mode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ func (gui *Gui) handleTestMode() {
6161
}
6262

6363
func Headless() bool {
64-
return os.Getenv("HEADLESS") != ""
64+
return os.Getenv("LAZYGIT_HEADLESS") != ""
6565
}

pkg/integration/clients/go_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestIntegration(t *testing.T) {
6565
func runCmdHeadless(cmd *exec.Cmd) (int, error) {
6666
cmd.Env = append(
6767
cmd.Env,
68-
"HEADLESS=true",
68+
"LAZYGIT_HEADLESS=true",
6969
"TERM=xterm",
7070
)
7171

0 commit comments

Comments
 (0)