This commit is contained in:
Jesse Duffield 2023-05-27 12:08:27 +10:00
parent 8b15f22379
commit 6c7f893f7a
3 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import (
"os"
"os/exec"
"testing"
"time"
"github.com/creack/pty"
"github.com/jesseduffield/lazygit/pkg/integration/components"
@ -89,6 +90,8 @@ func runCmdHeadless(cmd *exec.Cmd) error {
_ = cmd.Wait()
time.Sleep(time.Second)
result, err := result.ReadResult(resultPath)
if err != nil {
return fmt.Errorf("Error reading integration test result: %w", err)

View file

@ -40,7 +40,6 @@ func success() IntegrationTestResult {
func writeResult(result IntegrationTestResult) error {
resultPath := os.Getenv(PathEnvVar)
if resultPath == "" {
panic("path env var not set!")
// path env var not set so we'll assume we don't need to write the result to a file
return nil
}

View file

@ -21,7 +21,7 @@ import (
var Global *logrus.Entry
func init() {
logPath := os.Getenv("LAZYGIT_LOG_PATH")
logPath := `C:\Users\New\AppData\Roaming\jesseduffield\lazygit\development.log`
if logPath != "" {
Global = NewDevelopmentLogger(logPath)
}