mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 16:16:28 -04:00
WIP
This commit is contained in:
parent
8b15f22379
commit
6c7f893f7a
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue