diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-03 22:47:22 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 4197921465a6cb67d5fdd5b63de653493a5ebd41 (patch) | |
tree | 61e5d1ddabac4de5818521df0da5309169b56c1e /pkg/gui/gui_test.go | |
parent | 4b69ab08c18f7577b7cae79c934edf4dca5b2103 (diff) |
WIP
Diffstat (limited to 'pkg/gui/gui_test.go')
-rw-r--r-- | pkg/gui/gui_test.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pkg/gui/gui_test.go b/pkg/gui/gui_test.go index 3db424716..b77113aa2 100644 --- a/pkg/gui/gui_test.go +++ b/pkg/gui/gui_test.go @@ -306,28 +306,23 @@ func runLazygit(t *testing.T, testPath string, rootDir string, record bool, spee err = oscommands.CopyDir(templateConfigDir, configDir) assert.NoError(t, err) - cmdStr := fmt.Sprintf("sudo dtruss %s --use-config-dir=%s --path=%s", tempLazygitPath(), configDir, actualDir) + cmdStr := fmt.Sprintf("%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)) if record { - cmd.Stdout = os.Stdout - cmd.Stdin = os.Stdin - cmd.Stderr = os.Stderr cmd.Env = append( - os.Environ(), + cmd.Env, fmt.Sprintf("RECORD_EVENTS_TO=%s", replayPath), - "TERM=xterm-256color", ) } else { cmd.Stdout = os.Stdout cmd.Stdin = os.Stdin cmd.Stderr = os.Stderr cmd.Env = append( - os.Environ(), + cmd.Env, fmt.Sprintf("REPLAY_EVENTS_FROM=%s", replayPath), - "TERM=xterm-256color", ) t.Log(spew.Sdump(cmd)) } @@ -360,7 +355,7 @@ func runInParallel() bool { } func runInPTY() bool { - return runInParallel() || os.Getenv("TERM") == "" + return true } func prepareIntegrationTestDir(actualDir string) { |