diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-03 21:56:42 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 4b69ab08c18f7577b7cae79c934edf4dca5b2103 (patch) | |
tree | 017cac8eff0813d6e50c6c7746a73b39d5bdba4d /pkg/gui/gui_test.go | |
parent | f3a0058eb91c924545c04bc1332fa7bddb2422ee (diff) |
WIP
Diffstat (limited to 'pkg/gui/gui_test.go')
-rw-r--r-- | pkg/gui/gui_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/gui_test.go b/pkg/gui/gui_test.go index 2fc73609f..3db424716 100644 --- a/pkg/gui/gui_test.go +++ b/pkg/gui/gui_test.go @@ -12,6 +12,7 @@ import ( "testing" "github.com/creack/pty" + "github.com/davecgh/go-spew/spew" "github.com/jesseduffield/lazygit/pkg/commands/oscommands" "github.com/jesseduffield/lazygit/pkg/secureexec" "github.com/stretchr/testify/assert" @@ -305,7 +306,7 @@ func runLazygit(t *testing.T, testPath string, rootDir string, record bool, spee err = oscommands.CopyDir(templateConfigDir, configDir) assert.NoError(t, err) - cmdStr := fmt.Sprintf("%s --use-config-dir=%s --path=%s", tempLazygitPath(), configDir, actualDir) + cmdStr := fmt.Sprintf("sudo dtruss %s --use-config-dir=%s --path=%s", tempLazygitPath(), configDir, actualDir) cmd := osCommand.ExecutableFromString(cmdStr) cmd.Env = append(cmd.Env, fmt.Sprintf("REPLAY_SPEED=%d", speed)) @@ -328,7 +329,7 @@ func runLazygit(t *testing.T, testPath string, rootDir string, record bool, spee fmt.Sprintf("REPLAY_EVENTS_FROM=%s", replayPath), "TERM=xterm-256color", ) - t.Log(cmd.Env) + t.Log(spew.Sdump(cmd)) } t.Log("here") @@ -337,6 +338,7 @@ func runLazygit(t *testing.T, testPath string, rootDir string, record bool, spee if runInPTY() { t.Log("1") cmd.Env = append(cmd.Env, "TERM=xterm") + t.Log(cmd.Env) f, err := pty.StartWithSize(cmd, &pty.Winsize{Rows: 100, Cols: 100}) assert.NoError(t, err) |