Skip to content

Commit 484e3ee

Browse files
committed
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.
1 parent b57be9e commit 484e3ee

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)